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.122
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lib /
python3.10 /
test /
test_importlib /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
builtin
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
data
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
data01
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
data02
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
data03
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
extension
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
frozen
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
import_
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
namespace_pkgs
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
namespacedata01
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
partial
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
source
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
zipdata01
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
zipdata02
[ DIR ]
drwxr-sr-x
2025-06-04 09:23
__init__.py
142
B
-rw-r--r--
2025-06-04 09:23
__main__.py
58
B
-rw-r--r--
2025-06-04 09:23
abc.py
2.22
KB
-rw-r--r--
2025-06-04 09:23
fixtures.py
7.28
KB
-rw-r--r--
2025-06-04 09:23
stubs.py
233
B
-rw-r--r--
2025-06-04 09:23
test_abc.py
34.19
KB
-rw-r--r--
2025-06-04 09:23
test_api.py
18.59
KB
-rw-r--r--
2025-06-04 09:23
test_files.py
1011
B
-rw-r--r--
2025-06-04 09:23
test_lazy.py
4.81
KB
-rw-r--r--
2025-06-04 09:23
test_locks.py
4.41
KB
-rw-r--r--
2025-06-04 09:23
test_main.py
8.75
KB
-rw-r--r--
2025-06-04 09:23
test_metadata_api.py
11.41
KB
-rw-r--r--
2025-06-04 09:23
test_namespace_pkgs.py
12.11
KB
-rw-r--r--
2025-06-04 09:23
test_open.py
2.31
KB
-rw-r--r--
2025-06-04 09:23
test_path.py
1.88
KB
-rw-r--r--
2025-06-04 09:23
test_pkg_import.py
2.69
KB
-rw-r--r--
2025-06-04 09:23
test_read.py
1.94
KB
-rw-r--r--
2025-06-04 09:23
test_reader.py
4.18
KB
-rw-r--r--
2025-06-04 09:23
test_resource.py
8.18
KB
-rw-r--r--
2025-06-04 09:23
test_spec.py
30.88
KB
-rw-r--r--
2025-06-04 09:23
test_threaded_import.py
9.49
KB
-rw-r--r--
2025-06-04 09:23
test_util.py
34.67
KB
-rw-r--r--
2025-06-04 09:23
test_windows.py
7.26
KB
-rw-r--r--
2025-06-04 09:23
test_zip.py
2.61
KB
-rw-r--r--
2025-06-04 09:23
threaded_import_hangers.py
1.45
KB
-rw-r--r--
2025-06-04 09:23
update-zips.py
1.38
KB
-rwxr-xr-x
2025-06-04 09:23
util.py
18.22
KB
-rw-r--r--
2025-06-04 09:23
Save
Rename
import sys import unittest from contextlib import ExitStack from importlib.metadata import ( PackageNotFoundError, distribution, distributions, entry_points, files, version, ) from importlib import resources from test.support import requires_zlib @requires_zlib() class TestZip(unittest.TestCase): root = 'test.test_importlib.data' def _fixture_on_path(self, filename): pkg_file = resources.files(self.root).joinpath(filename) file = self.resources.enter_context(resources.as_file(pkg_file)) assert file.name.startswith('example-'), file.name sys.path.insert(0, str(file)) self.resources.callback(sys.path.pop, 0) def setUp(self): # Find the path to the example-*.whl so we can add it to the front of # sys.path, where we'll then try to find the metadata thereof. self.resources = ExitStack() self.addCleanup(self.resources.close) self._fixture_on_path('example-21.12-py3-none-any.whl') def test_zip_version(self): self.assertEqual(version('example'), '21.12') def test_zip_version_does_not_match(self): with self.assertRaises(PackageNotFoundError): version('definitely-not-installed') def test_zip_entry_points(self): scripts = entry_points(group='console_scripts') entry_point = scripts['example'] self.assertEqual(entry_point.value, 'example:main') entry_point = scripts['Example'] self.assertEqual(entry_point.value, 'example:main') def test_missing_metadata(self): self.assertIsNone(distribution('example').read_text('does not exist')) def test_case_insensitive(self): self.assertEqual(version('Example'), '21.12') def test_files(self): for file in files('example'): path = str(file.dist.locate_file(file)) assert '.whl/' in path, path def test_one_distribution(self): dists = list(distributions(path=sys.path[:1])) assert len(dists) == 1 @requires_zlib() class TestEgg(TestZip): def setUp(self): # Find the path to the example-*.egg so we can add it to the front of # sys.path, where we'll then try to find the metadata thereof. self.resources = ExitStack() self.addCleanup(self.resources.close) self._fixture_on_path('example-21.12-py3.6.egg') def test_files(self): for file in files('example'): path = str(file.dist.locate_file(file)) assert '.egg/' in path, path def test_normalized_name(self): dist = distribution('example') assert dist._normalized_name == 'example'