✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.254
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python310/lib64/python3.10/test/test_importlib//test_path.py
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()


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
3 Sep 2026 4.11 AM
root / linksafe
0755
__pycache__
--
3 Sep 2026 4.11 AM
root / linksafe
0755
builtin
--
3 Sep 2026 4.11 AM
root / linksafe
0755
data
--
3 Sep 2026 4.11 AM
root / linksafe
0755
data01
--
3 Sep 2026 4.11 AM
root / linksafe
0755
data02
--
3 Sep 2026 4.11 AM
root / linksafe
0755
data03
--
3 Sep 2026 4.11 AM
root / linksafe
0755
extension
--
3 Sep 2026 4.11 AM
root / linksafe
0755
frozen
--
3 Sep 2026 4.11 AM
root / linksafe
0755
import_
--
3 Sep 2026 4.11 AM
root / linksafe
0755
namespace_pkgs
--
3 Sep 2026 4.11 AM
root / linksafe
0755
namespacedata01
--
3 Sep 2026 4.11 AM
root / linksafe
0755
partial
--
3 Sep 2026 4.11 AM
root / linksafe
0755
source
--
3 Sep 2026 4.11 AM
root / linksafe
0755
zipdata01
--
3 Sep 2026 4.11 AM
root / linksafe
0755
zipdata02
--
3 Sep 2026 4.11 AM
root / linksafe
0755
__init__.py
0.139 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
__main__.py
0.057 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
abc.py
2.219 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
fixtures.py
7.283 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
stubs.py
0.228 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_abc.py
34.191 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_api.py
18.587 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_files.py
0.987 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_lazy.py
4.813 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_locks.py
4.411 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_main.py
8.753 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_metadata_api.py
11.409 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_namespace_pkgs.py
12.113 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_open.py
2.308 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_path.py
1.876 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_pkg_import.py
2.692 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_read.py
1.944 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_reader.py
4.176 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_resource.py
8.176 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_spec.py
30.879 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_threaded_import.py
9.494 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_util.py
34.671 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_windows.py
7.263 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_zip.py
2.607 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
threaded_import_hangers.py
1.449 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
update-zips.py
1.382 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
util.py
18.222 KB
12 Aug 2026 11.03 PM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF