✘✘ 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/python34/lib64/python3.4/test//test_tempfile.py
# tempfile.py unit tests.
import tempfile
import errno
import io
import os
import signal
import sys
import re
import warnings
import contextlib
import weakref
from unittest import mock

import unittest
from test import support, script_helper


if hasattr(os, 'stat'):
    import stat
    has_stat = 1
else:
    has_stat = 0

has_textmode = (tempfile._text_openflags != tempfile._bin_openflags)
has_spawnl = hasattr(os, 'spawnl')

# TEST_FILES may need to be tweaked for systems depending on the maximum
# number of files that can be opened at one time (see ulimit -n)
if sys.platform.startswith('openbsd'):
    TEST_FILES = 48
else:
    TEST_FILES = 100

# This is organized as one test for each chunk of code in tempfile.py,
# in order of their appearance in the file.  Testing which requires
# threads is not done here.

# Common functionality.
class BaseTestCase(unittest.TestCase):

    str_check = re.compile(r"^[a-z0-9_-]{8}$")

    def setUp(self):
        self._warnings_manager = support.check_warnings()
        self._warnings_manager.__enter__()
        warnings.filterwarnings("ignore", category=RuntimeWarning,
                                message="mktemp", module=__name__)

    def tearDown(self):
        self._warnings_manager.__exit__(None, None, None)


    def nameCheck(self, name, dir, pre, suf):
        (ndir, nbase) = os.path.split(name)
        npre  = nbase[:len(pre)]
        nsuf  = nbase[len(nbase)-len(suf):]

        # check for equality of the absolute paths!
        self.assertEqual(os.path.abspath(ndir), os.path.abspath(dir),
                         "file '%s' not in directory '%s'" % (name, dir))
        self.assertEqual(npre, pre,
                         "file '%s' does not begin with '%s'" % (nbase, pre))
        self.assertEqual(nsuf, suf,
                         "file '%s' does not end with '%s'" % (nbase, suf))

        nbase = nbase[len(pre):len(nbase)-len(suf)]
        self.assertTrue(self.str_check.match(nbase),
                     "random string '%s' does not match ^[a-z0-9_-]{8}$"
                     % nbase)


class TestExports(BaseTestCase):
    def test_exports(self):
        # There are no surprising symbols in the tempfile module
        dict = tempfile.__dict__

        expected = {
            "NamedTemporaryFile" : 1,
            "TemporaryFile" : 1,
            "mkstemp" : 1,
            "mkdtemp" : 1,
            "mktemp" : 1,
            "TMP_MAX" : 1,
            "gettempprefix" : 1,
            "gettempdir" : 1,
            "tempdir" : 1,
            "template" : 1,
            "SpooledTemporaryFile" : 1,
            "TemporaryDirectory" : 1,
        }

        unexp = []
        for key in dict:
            if key[0] != '_' and key not in expected:
                unexp.append(key)
        self.assertTrue(len(unexp) == 0,
                        "unexpected keys: %s" % unexp)


class TestRandomNameSequence(BaseTestCase):
    """Test the internal iterator object _RandomNameSequence."""

    def setUp(self):
        self.r = tempfile._RandomNameSequence()
        super().setUp()

    def test_get_six_char_str(self):
        # _RandomNameSequence returns a six-character string
        s = next(self.r)
        self.nameCheck(s, '', '', '')

    def test_many(self):
        # _RandomNameSequence returns no duplicate strings (stochastic)

        dict = {}
        r = self.r
        for i in range(TEST_FILES):
            s = next(r)
            self.nameCheck(s, '', '', '')
            self.assertNotIn(s, dict)
            dict[s] = 1

    def supports_iter(self):
        # _RandomNameSequence supports the iterator protocol

        i = 0
        r = self.r
        for s in r:
            i += 1
            if i == 20:
                break

    @unittest.skipUnless(hasattr(os, 'fork'),
        "os.fork is required for this test")
    def test_process_awareness(self):
        # ensure that the random source differs between
        # child and parent.
        read_fd, write_fd = os.pipe()
        pid = None
        try:
            pid = os.fork()
            if not pid:
                os.close(read_fd)
                os.write(write_fd, next(self.r).encode("ascii"))
                os.close(write_fd)
                # bypass the normal exit handlers- leave those to
                # the parent.
                os._exit(0)
            parent_value = next(self.r)
            child_value = os.read(read_fd, len(parent_value)).decode("ascii")
        finally:
            if pid:
                # best effort to ensure the process can't bleed out
                # via any bugs above
                try:
                    os.kill(pid, signal.SIGKILL)
                except OSError:
                    pass
            os.close(read_fd)
            os.close(write_fd)
        self.assertNotEqual(child_value, parent_value)



class TestCandidateTempdirList(BaseTestCase):
    """Test the internal function _candidate_tempdir_list."""

    def test_nonempty_list(self):
        # _candidate_tempdir_list returns a nonempty list of strings

        cand = tempfile._candidate_tempdir_list()

        self.assertFalse(len(cand) == 0)
        for c in cand:
            self.assertIsInstance(c, str)

    def test_wanted_dirs(self):
        # _candidate_tempdir_list contains the expected directories

        # Make sure the interesting environment variables are all set.
        with support.EnvironmentVarGuard() as env:
            for envname in 'TMPDIR', 'TEMP', 'TMP':
                dirname = os.getenv(envname)
                if not dirname:
                    env[envname] = os.path.abspath(envname)

            cand = tempfile._candidate_tempdir_list()

            for envname in 'TMPDIR', 'TEMP', 'TMP':
                dirname = os.getenv(envname)
                if not dirname: raise ValueError
                self.assertIn(dirname, cand)

            try:
                dirname = os.getcwd()
            except (AttributeError, OSError):
                dirname = os.curdir

            self.assertIn(dirname, cand)

            # Not practical to try to verify the presence of OS-specific
            # paths in this list.


# We test _get_default_tempdir some more by testing gettempdir.

class TestGetDefaultTempdir(BaseTestCase):
    """Test _get_default_tempdir()."""

    def test_no_files_left_behind(self):
        # use a private empty directory
        with tempfile.TemporaryDirectory() as our_temp_directory:
            # force _get_default_tempdir() to consider our empty directory
            def our_candidate_list():
                return [our_temp_directory]

            with support.swap_attr(tempfile, "_candidate_tempdir_list",
                                   our_candidate_list):
                # verify our directory is empty after _get_default_tempdir()
                tempfile._get_default_tempdir()
                self.assertEqual(os.listdir(our_temp_directory), [])

                def raise_OSError(*args, **kwargs):
                    raise OSError()

                with support.swap_attr(io, "open", raise_OSError):
                    # test again with failing io.open()
                    with self.assertRaises(FileNotFoundError):
                        tempfile._get_default_tempdir()
                    self.assertEqual(os.listdir(our_temp_directory), [])

                open = io.open
                def bad_writer(*args, **kwargs):
                    fp = open(*args, **kwargs)
                    fp.write = raise_OSError
                    return fp

                with support.swap_attr(io, "open", bad_writer):
                    # test again with failing write()
                    with self.assertRaises(FileNotFoundError):
                        tempfile._get_default_tempdir()
                    self.assertEqual(os.listdir(our_temp_directory), [])


class TestGetCandidateNames(BaseTestCase):
    """Test the internal function _get_candidate_names."""

    def test_retval(self):
        # _get_candidate_names returns a _RandomNameSequence object
        obj = tempfile._get_candidate_names()
        self.assertIsInstance(obj, tempfile._RandomNameSequence)

    def test_same_thing(self):
        # _get_candidate_names always returns the same object
        a = tempfile._get_candidate_names()
        b = tempfile._get_candidate_names()

        self.assertTrue(a is b)


@contextlib.contextmanager
def _inside_empty_temp_dir():
    dir = tempfile.mkdtemp()
    try:
        with support.swap_attr(tempfile, 'tempdir', dir):
            yield
    finally:
        support.rmtree(dir)


def _mock_candidate_names(*names):
    return support.swap_attr(tempfile,
                             '_get_candidate_names',
                             lambda: iter(names))


class TestBadTempdir:

    def test_read_only_directory(self):
        with _inside_empty_temp_dir():
            oldmode = mode = os.stat(tempfile.tempdir).st_mode
            mode &= ~(stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH)
            os.chmod(tempfile.tempdir, mode)
            try:
                if os.access(tempfile.tempdir, os.W_OK):
                    self.skipTest("can't set the directory read-only")
                with self.assertRaises(PermissionError):
                    self.make_temp()
                self.assertEqual(os.listdir(tempfile.tempdir), [])
            finally:
                os.chmod(tempfile.tempdir, oldmode)

    def test_nonexisting_directory(self):
        with _inside_empty_temp_dir():
            tempdir = os.path.join(tempfile.tempdir, 'nonexistent')
            with support.swap_attr(tempfile, 'tempdir', tempdir):
                with self.assertRaises(FileNotFoundError):
                    self.make_temp()

    def test_non_directory(self):
        with _inside_empty_temp_dir():
            tempdir = os.path.join(tempfile.tempdir, 'file')
            open(tempdir, 'wb').close()
            with support.swap_attr(tempfile, 'tempdir', tempdir):
                with self.assertRaises((NotADirectoryError, FileNotFoundError)):
                    self.make_temp()


class TestMkstempInner(TestBadTempdir, BaseTestCase):
    """Test the internal function _mkstemp_inner."""

    class mkstemped:
        _bflags = tempfile._bin_openflags
        _tflags = tempfile._text_openflags
        _close = os.close
        _unlink = os.unlink

        def __init__(self, dir, pre, suf, bin):
            if bin: flags = self._bflags
            else:   flags = self._tflags

            (self.fd, self.name) = tempfile._mkstemp_inner(dir, pre, suf, flags)

        def write(self, str):
            os.write(self.fd, str)

        def __del__(self):
            self._close(self.fd)
            self._unlink(self.name)

    def do_create(self, dir=None, pre="", suf="", bin=1):
        if dir is None:
            dir = tempfile.gettempdir()
        file = self.mkstemped(dir, pre, suf, bin)

        self.nameCheck(file.name, dir, pre, suf)
        return file

    def test_basic(self):
        # _mkstemp_inner can create files
        self.do_create().write(b"blat")
        self.do_create(pre="a").write(b"blat")
        self.do_create(suf="b").write(b"blat")
        self.do_create(pre="a", suf="b").write(b"blat")
        self.do_create(pre="aa", suf=".txt").write(b"blat")

    def test_basic_many(self):
        # _mkstemp_inner can create many files (stochastic)
        extant = list(range(TEST_FILES))
        for i in extant:
            extant[i] = self.do_create(pre="aa")

    def test_choose_directory(self):
        # _mkstemp_inner can create files in a user-selected directory
        dir = tempfile.mkdtemp()
        try:
            self.do_create(dir=dir).write(b"blat")
        finally:
            os.rmdir(dir)

    @unittest.skipUnless(has_stat, 'os.stat not available')
    def test_file_mode(self):
        # _mkstemp_inner creates files with the proper mode

        file = self.do_create()
        mode = stat.S_IMODE(os.stat(file.name).st_mode)
        expected = 0o600
        if sys.platform == 'win32':
            # There's no distinction among 'user', 'group' and 'world';
            # replicate the 'user' bits.
            user = expected >> 6
            expected = user * (1 + 8 + 64)
        self.assertEqual(mode, expected)

    @unittest.skipUnless(has_spawnl, 'os.spawnl not available')
    def test_noinherit(self):
        # _mkstemp_inner file handles are not inherited by child processes

        if support.verbose:
            v="v"
        else:
            v="q"

        file = self.do_create()
        self.assertEqual(os.get_inheritable(file.fd), False)
        fd = "%d" % file.fd

        try:
            me = __file__
        except NameError:
            me = sys.argv[0]

        # We have to exec something, so that FD_CLOEXEC will take
        # effect.  The core of this test is therefore in
        # tf_inherit_check.py, which see.
        tester = os.path.join(os.path.dirname(os.path.abspath(me)),
                              "tf_inherit_check.py")

        # On Windows a spawn* /path/ with embedded spaces shouldn't be quoted,
        # but an arg with embedded spaces should be decorated with double
        # quotes on each end
        if sys.platform == 'win32':
            decorated = '"%s"' % sys.executable
            tester = '"%s"' % tester
        else:
            decorated = sys.executable

        retval = os.spawnl(os.P_WAIT, sys.executable, decorated, tester, v, fd)
        self.assertFalse(retval < 0,
                    "child process caught fatal signal %d" % -retval)
        self.assertFalse(retval > 0, "child process reports failure %d"%retval)

    @unittest.skipUnless(has_textmode, "text mode not available")
    def test_textmode(self):
        # _mkstemp_inner can create files in text mode

        # A text file is truncated at the first Ctrl+Z byte
        f = self.do_create(bin=0)
        f.write(b"blat\x1a")
        f.write(b"extra\n")
        os.lseek(f.fd, 0, os.SEEK_SET)
        self.assertEqual(os.read(f.fd, 20), b"blat")

    def make_temp(self):
        return tempfile._mkstemp_inner(tempfile.gettempdir(),
                                       tempfile.template,
                                       '',
                                       tempfile._bin_openflags)

    def test_collision_with_existing_file(self):
        # _mkstemp_inner tries another name when a file with
        # the chosen name already exists
        with _inside_empty_temp_dir(), \
             _mock_candidate_names('aaa', 'aaa', 'bbb'):
            (fd1, name1) = self.make_temp()
            os.close(fd1)
            self.assertTrue(name1.endswith('aaa'))

            (fd2, name2) = self.make_temp()
            os.close(fd2)
            self.assertTrue(name2.endswith('bbb'))

    def test_collision_with_existing_directory(self):
        # _mkstemp_inner tries another name when a directory with
        # the chosen name already exists
        with _inside_empty_temp_dir(), \
             _mock_candidate_names('aaa', 'aaa', 'bbb'):
            dir = tempfile.mkdtemp()
            self.assertTrue(dir.endswith('aaa'))

            (fd, name) = self.make_temp()
            os.close(fd)
            self.assertTrue(name.endswith('bbb'))


class TestGetTempPrefix(BaseTestCase):
    """Test gettempprefix()."""

    def test_sane_template(self):
        # gettempprefix returns a nonempty prefix string
        p = tempfile.gettempprefix()

        self.assertIsInstance(p, str)
        self.assertTrue(len(p) > 0)

    def test_usable_template(self):
        # gettempprefix returns a usable prefix string

        # Create a temp directory, avoiding use of the prefix.
        # Then attempt to create a file whose name is
        # prefix + 'xxxxxx.xxx' in that directory.
        p = tempfile.gettempprefix() + "xxxxxx.xxx"
        d = tempfile.mkdtemp(prefix="")
        try:
            p = os.path.join(d, p)
            fd = os.open(p, os.O_RDWR | os.O_CREAT)
            os.close(fd)
            os.unlink(p)
        finally:
            os.rmdir(d)


class TestGetTempDir(BaseTestCase):
    """Test gettempdir()."""

    def test_directory_exists(self):
        # gettempdir returns a directory which exists

        dir = tempfile.gettempdir()
        self.assertTrue(os.path.isabs(dir) or dir == os.curdir,
                     "%s is not an absolute path" % dir)
        self.assertTrue(os.path.isdir(dir),
                     "%s is not a directory" % dir)

    def test_directory_writable(self):
        # gettempdir returns a directory writable by the user

        # sneaky: just instantiate a NamedTemporaryFile, which
        # defaults to writing into the directory returned by
        # gettempdir.
        file = tempfile.NamedTemporaryFile()
        file.write(b"blat")
        file.close()

    def test_same_thing(self):
        # gettempdir always returns the same object
        a = tempfile.gettempdir()
        b = tempfile.gettempdir()

        self.assertTrue(a is b)

    def test_case_sensitive(self):
        # gettempdir should not flatten its case
        # even on a case-insensitive file system
        case_sensitive_tempdir = tempfile.mkdtemp("-Temp")
        _tempdir, tempfile.tempdir = tempfile.tempdir, None
        try:
            with support.EnvironmentVarGuard() as env:
                # Fake the first env var which is checked as a candidate
                env["TMPDIR"] = case_sensitive_tempdir
                self.assertEqual(tempfile.gettempdir(), case_sensitive_tempdir)
        finally:
            tempfile.tempdir = _tempdir
            support.rmdir(case_sensitive_tempdir)


class TestMkstemp(BaseTestCase):
    """Test mkstemp()."""

    def do_create(self, dir=None, pre="", suf=""):
        if dir is None:
            dir = tempfile.gettempdir()
        (fd, name) = tempfile.mkstemp(dir=dir, prefix=pre, suffix=suf)
        (ndir, nbase) = os.path.split(name)
        adir = os.path.abspath(dir)
        self.assertEqual(adir, ndir,
            "Directory '%s' incorrectly returned as '%s'" % (adir, ndir))

        try:
            self.nameCheck(name, dir, pre, suf)
        finally:
            os.close(fd)
            os.unlink(name)

    def test_basic(self):
        # mkstemp can create files
        self.do_create()
        self.do_create(pre="a")
        self.do_create(suf="b")
        self.do_create(pre="a", suf="b")
        self.do_create(pre="aa", suf=".txt")
        self.do_create(dir=".")

    def test_choose_directory(self):
        # mkstemp can create directories in a user-selected directory
        dir = tempfile.mkdtemp()
        try:
            self.do_create(dir=dir)
        finally:
            os.rmdir(dir)


class TestMkdtemp(TestBadTempdir, BaseTestCase):
    """Test mkdtemp()."""

    def make_temp(self):
        return tempfile.mkdtemp()

    def do_create(self, dir=None, pre="", suf=""):
        if dir is None:
            dir = tempfile.gettempdir()
        name = tempfile.mkdtemp(dir=dir, prefix=pre, suffix=suf)

        try:
            self.nameCheck(name, dir, pre, suf)
            return name
        except:
            os.rmdir(name)
            raise

    def test_basic(self):
        # mkdtemp can create directories
        os.rmdir(self.do_create())
        os.rmdir(self.do_create(pre="a"))
        os.rmdir(self.do_create(suf="b"))
        os.rmdir(self.do_create(pre="a", suf="b"))
        os.rmdir(self.do_create(pre="aa", suf=".txt"))

    def test_basic_many(self):
        # mkdtemp can create many directories (stochastic)
        extant = list(range(TEST_FILES))
        try:
            for i in extant:
                extant[i] = self.do_create(pre="aa")
        finally:
            for i in extant:
                if(isinstance(i, str)):
                    os.rmdir(i)

    def test_choose_directory(self):
        # mkdtemp can create directories in a user-selected directory
        dir = tempfile.mkdtemp()
        try:
            os.rmdir(self.do_create(dir=dir))
        finally:
            os.rmdir(dir)

    @unittest.skipUnless(has_stat, 'os.stat not available')
    def test_mode(self):
        # mkdtemp creates directories with the proper mode

        dir = self.do_create()
        try:
            mode = stat.S_IMODE(os.stat(dir).st_mode)
            mode &= 0o777 # Mask off sticky bits inherited from /tmp
            expected = 0o700
            if sys.platform == 'win32':
                # There's no distinction among 'user', 'group' and 'world';
                # replicate the 'user' bits.
                user = expected >> 6
                expected = user * (1 + 8 + 64)
            self.assertEqual(mode, expected)
        finally:
            os.rmdir(dir)

    def test_collision_with_existing_file(self):
        # mkdtemp tries another name when a file with
        # the chosen name already exists
        with _inside_empty_temp_dir(), \
             _mock_candidate_names('aaa', 'aaa', 'bbb'):
            file = tempfile.NamedTemporaryFile(delete=False)
            file.close()
            self.assertTrue(file.name.endswith('aaa'))
            dir = tempfile.mkdtemp()
            self.assertTrue(dir.endswith('bbb'))

    def test_collision_with_existing_directory(self):
        # mkdtemp tries another name when a directory with
        # the chosen name already exists
        with _inside_empty_temp_dir(), \
             _mock_candidate_names('aaa', 'aaa', 'bbb'):
            dir1 = tempfile.mkdtemp()
            self.assertTrue(dir1.endswith('aaa'))
            dir2 = tempfile.mkdtemp()
            self.assertTrue(dir2.endswith('bbb'))


class TestMktemp(BaseTestCase):
    """Test mktemp()."""

    # For safety, all use of mktemp must occur in a private directory.
    # We must also suppress the RuntimeWarning it generates.
    def setUp(self):
        self.dir = tempfile.mkdtemp()
        super().setUp()

    def tearDown(self):
        if self.dir:
            os.rmdir(self.dir)
            self.dir = None
        super().tearDown()

    class mktemped:
        _unlink = os.unlink
        _bflags = tempfile._bin_openflags

        def __init__(self, dir, pre, suf):
            self.name = tempfile.mktemp(dir=dir, prefix=pre, suffix=suf)
            # Create the file.  This will raise an exception if it's
            # mysteriously appeared in the meanwhile.
            os.close(os.open(self.name, self._bflags, 0o600))

        def __del__(self):
            self._unlink(self.name)

    def do_create(self, pre="", suf=""):
        file = self.mktemped(self.dir, pre, suf)

        self.nameCheck(file.name, self.dir, pre, suf)
        return file

    def test_basic(self):
        # mktemp can choose usable file names
        self.do_create()
        self.do_create(pre="a")
        self.do_create(suf="b")
        self.do_create(pre="a", suf="b")
        self.do_create(pre="aa", suf=".txt")

    def test_many(self):
        # mktemp can choose many usable file names (stochastic)
        extant = list(range(TEST_FILES))
        for i in extant:
            extant[i] = self.do_create(pre="aa")

##     def test_warning(self):
##         # mktemp issues a warning when used
##         warnings.filterwarnings("error",
##                                 category=RuntimeWarning,
##                                 message="mktemp")
##         self.assertRaises(RuntimeWarning,
##                           tempfile.mktemp, dir=self.dir)


# We test _TemporaryFileWrapper by testing NamedTemporaryFile.


class TestNamedTemporaryFile(BaseTestCase):
    """Test NamedTemporaryFile()."""

    def do_create(self, dir=None, pre="", suf="", delete=True):
        if dir is None:
            dir = tempfile.gettempdir()
        file = tempfile.NamedTemporaryFile(dir=dir, prefix=pre, suffix=suf,
                                           delete=delete)

        self.nameCheck(file.name, dir, pre, suf)
        return file


    def test_basic(self):
        # NamedTemporaryFile can create files
        self.do_create()
        self.do_create(pre="a")
        self.do_create(suf="b")
        self.do_create(pre="a", suf="b")
        self.do_create(pre="aa", suf=".txt")

    def test_method_lookup(self):
        # Issue #18879: Looking up a temporary file method should keep it
        # alive long enough.
        f = self.do_create()
        wr = weakref.ref(f)
        write = f.write
        write2 = f.write
        del f
        write(b'foo')
        del write
        write2(b'bar')
        del write2
        if support.check_impl_detail(cpython=True):
            # No reference cycle was created.
            self.assertIsNone(wr())

    def test_iter(self):
        # Issue #23700: getting iterator from a temporary file should keep
        # it alive as long as it's being iterated over
        lines = [b'spam\n', b'eggs\n', b'beans\n']
        def make_file():
            f = tempfile.NamedTemporaryFile(mode='w+b')
            f.write(b''.join(lines))
            f.seek(0)
            return f
        for i, l in enumerate(make_file()):
            self.assertEqual(l, lines[i])
        self.assertEqual(i, len(lines) - 1)

    def test_creates_named(self):
        # NamedTemporaryFile creates files with names
        f = tempfile.NamedTemporaryFile()
        self.assertTrue(os.path.exists(f.name),
                        "NamedTemporaryFile %s does not exist" % f.name)

    def test_del_on_close(self):
        # A NamedTemporaryFile is deleted when closed
        dir = tempfile.mkdtemp()
        try:
            f = tempfile.NamedTemporaryFile(dir=dir)
            f.write(b'blat')
            f.close()
            self.assertFalse(os.path.exists(f.name),
                        "NamedTemporaryFile %s exists after close" % f.name)
        finally:
            os.rmdir(dir)

    def test_dis_del_on_close(self):
        # Tests that delete-on-close can be disabled
        dir = tempfile.mkdtemp()
        tmp = None
        try:
            f = tempfile.NamedTemporaryFile(dir=dir, delete=False)
            tmp = f.name
            f.write(b'blat')
            f.close()
            self.assertTrue(os.path.exists(f.name),
                        "NamedTemporaryFile %s missing after close" % f.name)
        finally:
            if tmp is not None:
                os.unlink(tmp)
            os.rmdir(dir)

    def test_multiple_close(self):
        # A NamedTemporaryFile can be closed many times without error
        f = tempfile.NamedTemporaryFile()
        f.write(b'abc\n')
        f.close()
        f.close()
        f.close()

    def test_context_manager(self):
        # A NamedTemporaryFile can be used as a context manager
        with tempfile.NamedTemporaryFile() as f:
            self.assertTrue(os.path.exists(f.name))
        self.assertFalse(os.path.exists(f.name))
        def use_closed():
            with f:
                pass
        self.assertRaises(ValueError, use_closed)

    def test_no_leak_fd(self):
        # Issue #21058: don't leak file descriptor when io.open() fails
        closed = []
        os_close = os.close
        def close(fd):
            closed.append(fd)
            os_close(fd)

        with mock.patch('os.close', side_effect=close):
            with mock.patch('io.open', side_effect=ValueError):
                self.assertRaises(ValueError, tempfile.NamedTemporaryFile)
                self.assertEqual(len(closed), 1)

    # How to test the mode and bufsize parameters?


class TestSpooledTemporaryFile(BaseTestCase):
    """Test SpooledTemporaryFile()."""

    def do_create(self, max_size=0, dir=None, pre="", suf=""):
        if dir is None:
            dir = tempfile.gettempdir()
        file = tempfile.SpooledTemporaryFile(max_size=max_size, dir=dir, prefix=pre, suffix=suf)

        return file


    def test_basic(self):
        # SpooledTemporaryFile can create files
        f = self.do_create()
        self.assertFalse(f._rolled)
        f = self.do_create(max_size=100, pre="a", suf=".txt")
        self.assertFalse(f._rolled)

    def test_del_on_close(self):
        # A SpooledTemporaryFile is deleted when closed
        dir = tempfile.mkdtemp()
        try:
            f = tempfile.SpooledTemporaryFile(max_size=10, dir=dir)
            self.assertFalse(f._rolled)
            f.write(b'blat ' * 5)
            self.assertTrue(f._rolled)
            filename = f.name
            f.close()
            self.assertFalse(isinstance(filename, str) and os.path.exists(filename),
                        "SpooledTemporaryFile %s exists after close" % filename)
        finally:
            os.rmdir(dir)

    def test_rewrite_small(self):
        # A SpooledTemporaryFile can be written to multiple within the max_size
        f = self.do_create(max_size=30)
        self.assertFalse(f._rolled)
        for i in range(5):
            f.seek(0, 0)
            f.write(b'x' * 20)
        self.assertFalse(f._rolled)

    def test_write_sequential(self):
        # A SpooledTemporaryFile should hold exactly max_size bytes, and roll
        # over afterward
        f = self.do_create(max_size=30)
        self.assertFalse(f._rolled)
        f.write(b'x' * 20)
        self.assertFalse(f._rolled)
        f.write(b'x' * 10)
        self.assertFalse(f._rolled)
        f.write(b'x')
        self.assertTrue(f._rolled)

    def test_writelines(self):
        # Verify writelines with a SpooledTemporaryFile
        f = self.do_create()
        f.writelines((b'x', b'y', b'z'))
        f.seek(0)
        buf = f.read()
        self.assertEqual(buf, b'xyz')

    def test_writelines_sequential(self):
        # A SpooledTemporaryFile should hold exactly max_size bytes, and roll
        # over afterward
        f = self.do_create(max_size=35)
        f.writelines((b'x' * 20, b'x' * 10, b'x' * 5))
        self.assertFalse(f._rolled)
        f.write(b'x')
        self.assertTrue(f._rolled)

    def test_sparse(self):
        # A SpooledTemporaryFile that is written late in the file will extend
        # when that occurs
        f = self.do_create(max_size=30)
        self.assertFalse(f._rolled)
        f.seek(100, 0)
        self.assertFalse(f._rolled)
        f.write(b'x')
        self.assertTrue(f._rolled)

    def test_fileno(self):
        # A SpooledTemporaryFile should roll over to a real file on fileno()
        f = self.do_create(max_size=30)
        self.assertFalse(f._rolled)
        self.assertTrue(f.fileno() > 0)
        self.assertTrue(f._rolled)

    def test_multiple_close_before_rollover(self):
        # A SpooledTemporaryFile can be closed many times without error
        f = tempfile.SpooledTemporaryFile()
        f.write(b'abc\n')
        self.assertFalse(f._rolled)
        f.close()
        f.close()
        f.close()

    def test_multiple_close_after_rollover(self):
        # A SpooledTemporaryFile can be closed many times without error
        f = tempfile.SpooledTemporaryFile(max_size=1)
        f.write(b'abc\n')
        self.assertTrue(f._rolled)
        f.close()
        f.close()
        f.close()

    def test_bound_methods(self):
        # It should be OK to steal a bound method from a SpooledTemporaryFile
        # and use it independently; when the file rolls over, those bound
        # methods should continue to function
        f = self.do_create(max_size=30)
        read = f.read
        write = f.write
        seek = f.seek

        write(b"a" * 35)
        write(b"b" * 35)
        seek(0, 0)
        self.assertEqual(read(70), b'a'*35 + b'b'*35)

    def test_properties(self):
        f = tempfile.SpooledTemporaryFile(max_size=10)
        f.write(b'x' * 10)
        self.assertFalse(f._rolled)
        self.assertEqual(f.mode, 'w+b')
        self.assertIsNone(f.name)
        with self.assertRaises(AttributeError):
            f.newlines
        with self.assertRaises(AttributeError):
            f.encoding

        f.write(b'x')
        self.assertTrue(f._rolled)
        self.assertEqual(f.mode, 'rb+')
        self.assertIsNotNone(f.name)
        with self.assertRaises(AttributeError):
            f.newlines
        with self.assertRaises(AttributeError):
            f.encoding

    def test_text_mode(self):
        # Creating a SpooledTemporaryFile with a text mode should produce
        # a file object reading and writing (Unicode) text strings.
        f = tempfile.SpooledTemporaryFile(mode='w+', max_size=10)
        f.write("abc\n")
        f.seek(0)
        self.assertEqual(f.read(), "abc\n")
        f.write("def\n")
        f.seek(0)
        self.assertEqual(f.read(), "abc\ndef\n")
        self.assertFalse(f._rolled)
        self.assertEqual(f.mode, 'w+')
        self.assertIsNone(f.name)
        self.assertIsNone(f.newlines)
        self.assertIsNone(f.encoding)

        f.write("xyzzy\n")
        f.seek(0)
        self.assertEqual(f.read(), "abc\ndef\nxyzzy\n")
        # Check that Ctrl+Z doesn't truncate the file
        f.write("foo\x1abar\n")
        f.seek(0)
        self.assertEqual(f.read(), "abc\ndef\nxyzzy\nfoo\x1abar\n")
        self.assertTrue(f._rolled)
        self.assertEqual(f.mode, 'w+')
        self.assertIsNotNone(f.name)
        self.assertEqual(f.newlines, os.linesep)
        self.assertIsNotNone(f.encoding)

    def test_text_newline_and_encoding(self):
        f = tempfile.SpooledTemporaryFile(mode='w+', max_size=10,
                                          newline='', encoding='utf-8')
        f.write("\u039B\r\n")
        f.seek(0)
        self.assertEqual(f.read(), "\u039B\r\n")
        self.assertFalse(f._rolled)
        self.assertEqual(f.mode, 'w+')
        self.assertIsNone(f.name)
        self.assertIsNone(f.newlines)
        self.assertIsNone(f.encoding)

        f.write("\u039B" * 20 + "\r\n")
        f.seek(0)
        self.assertEqual(f.read(), "\u039B\r\n" + ("\u039B" * 20) + "\r\n")
        self.assertTrue(f._rolled)
        self.assertEqual(f.mode, 'w+')
        self.assertIsNotNone(f.name)
        self.assertIsNotNone(f.newlines)
        self.assertEqual(f.encoding, 'utf-8')

    def test_context_manager_before_rollover(self):
        # A SpooledTemporaryFile can be used as a context manager
        with tempfile.SpooledTemporaryFile(max_size=1) as f:
            self.assertFalse(f._rolled)
            self.assertFalse(f.closed)
        self.assertTrue(f.closed)
        def use_closed():
            with f:
                pass
        self.assertRaises(ValueError, use_closed)

    def test_context_manager_during_rollover(self):
        # A SpooledTemporaryFile can be used as a context manager
        with tempfile.SpooledTemporaryFile(max_size=1) as f:
            self.assertFalse(f._rolled)
            f.write(b'abc\n')
            f.flush()
            self.assertTrue(f._rolled)
            self.assertFalse(f.closed)
        self.assertTrue(f.closed)
        def use_closed():
            with f:
                pass
        self.assertRaises(ValueError, use_closed)

    def test_context_manager_after_rollover(self):
        # A SpooledTemporaryFile can be used as a context manager
        f = tempfile.SpooledTemporaryFile(max_size=1)
        f.write(b'abc\n')
        f.flush()
        self.assertTrue(f._rolled)
        with f:
            self.assertFalse(f.closed)
        self.assertTrue(f.closed)
        def use_closed():
            with f:
                pass
        self.assertRaises(ValueError, use_closed)

    def test_truncate_with_size_parameter(self):
        # A SpooledTemporaryFile can be truncated to zero size
        f = tempfile.SpooledTemporaryFile(max_size=10)
        f.write(b'abcdefg\n')
        f.seek(0)
        f.truncate()
        self.assertFalse(f._rolled)
        self.assertEqual(f._file.getvalue(), b'')
        # A SpooledTemporaryFile can be truncated to a specific size
        f = tempfile.SpooledTemporaryFile(max_size=10)
        f.write(b'abcdefg\n')
        f.truncate(4)
        self.assertFalse(f._rolled)
        self.assertEqual(f._file.getvalue(), b'abcd')
        # A SpooledTemporaryFile rolls over if truncated to large size
        f = tempfile.SpooledTemporaryFile(max_size=10)
        f.write(b'abcdefg\n')
        f.truncate(20)
        self.assertTrue(f._rolled)
        if has_stat:
            self.assertEqual(os.fstat(f.fileno()).st_size, 20)


if tempfile.NamedTemporaryFile is not tempfile.TemporaryFile:

    class TestTemporaryFile(BaseTestCase):
        """Test TemporaryFile()."""

        def test_basic(self):
            # TemporaryFile can create files
            # No point in testing the name params - the file has no name.
            tempfile.TemporaryFile()

        def test_has_no_name(self):
            # TemporaryFile creates files with no names (on this system)
            dir = tempfile.mkdtemp()
            f = tempfile.TemporaryFile(dir=dir)
            f.write(b'blat')

            # Sneaky: because this file has no name, it should not prevent
            # us from removing the directory it was created in.
            try:
                os.rmdir(dir)
            except:
                # cleanup
                f.close()
                os.rmdir(dir)
                raise

        def test_multiple_close(self):
            # A TemporaryFile can be closed many times without error
            f = tempfile.TemporaryFile()
            f.write(b'abc\n')
            f.close()
            f.close()
            f.close()

        # How to test the mode and bufsize parameters?
        def test_mode_and_encoding(self):

            def roundtrip(input, *args, **kwargs):
                with tempfile.TemporaryFile(*args, **kwargs) as fileobj:
                    fileobj.write(input)
                    fileobj.seek(0)
                    self.assertEqual(input, fileobj.read())

            roundtrip(b"1234", "w+b")
            roundtrip("abdc\n", "w+")
            roundtrip("\u039B", "w+", encoding="utf-16")
            roundtrip("foo\r\n", "w+", newline="")

        def test_no_leak_fd(self):
            # Issue #21058: don't leak file descriptor when io.open() fails
            closed = []
            os_close = os.close
            def close(fd):
                closed.append(fd)
                os_close(fd)

            with mock.patch('os.close', side_effect=close):
                with mock.patch('io.open', side_effect=ValueError):
                    self.assertRaises(ValueError, tempfile.TemporaryFile)
                    self.assertEqual(len(closed), 1)



# Helper for test_del_on_shutdown
class NulledModules:
    def __init__(self, *modules):
        self.refs = [mod.__dict__ for mod in modules]
        self.contents = [ref.copy() for ref in self.refs]

    def __enter__(self):
        for d in self.refs:
            for key in d:
                d[key] = None

    def __exit__(self, *exc_info):
        for d, c in zip(self.refs, self.contents):
            d.clear()
            d.update(c)

class TestTemporaryDirectory(BaseTestCase):
    """Test TemporaryDirectory()."""

    def do_create(self, dir=None, pre="", suf="", recurse=1):
        if dir is None:
            dir = tempfile.gettempdir()
        tmp = tempfile.TemporaryDirectory(dir=dir, prefix=pre, suffix=suf)
        self.nameCheck(tmp.name, dir, pre, suf)
        # Create a subdirectory and some files
        if recurse:
            d1 = self.do_create(tmp.name, pre, suf, recurse-1)
            d1.name = None
        with open(os.path.join(tmp.name, "test.txt"), "wb") as f:
            f.write(b"Hello world!")
        return tmp

    def test_mkdtemp_failure(self):
        # Check no additional exception if mkdtemp fails
        # Previously would raise AttributeError instead
        # (noted as part of Issue #10188)
        with tempfile.TemporaryDirectory() as nonexistent:
            pass
        with self.assertRaises(FileNotFoundError) as cm:
            tempfile.TemporaryDirectory(dir=nonexistent)
        self.assertEqual(cm.exception.errno, errno.ENOENT)

    def test_explicit_cleanup(self):
        # A TemporaryDirectory is deleted when cleaned up
        dir = tempfile.mkdtemp()
        try:
            d = self.do_create(dir=dir)
            self.assertTrue(os.path.exists(d.name),
                            "TemporaryDirectory %s does not exist" % d.name)
            d.cleanup()
            self.assertFalse(os.path.exists(d.name),
                        "TemporaryDirectory %s exists after cleanup" % d.name)
        finally:
            os.rmdir(dir)

    @support.skip_unless_symlink
    def test_cleanup_with_symlink_to_a_directory(self):
        # cleanup() should not follow symlinks to directories (issue #12464)
        d1 = self.do_create()
        d2 = self.do_create(recurse=0)

        # Symlink d1/foo -> d2
        os.symlink(d2.name, os.path.join(d1.name, "foo"))

        # This call to cleanup() should not follow the "foo" symlink
        d1.cleanup()

        self.assertFalse(os.path.exists(d1.name),
                         "TemporaryDirectory %s exists after cleanup" % d1.name)
        self.assertTrue(os.path.exists(d2.name),
                        "Directory pointed to by a symlink was deleted")
        self.assertEqual(os.listdir(d2.name), ['test.txt'],
                         "Contents of the directory pointed to by a symlink "
                         "were deleted")
        d2.cleanup()

    @support.cpython_only
    def test_del_on_collection(self):
        # A TemporaryDirectory is deleted when garbage collected
        dir = tempfile.mkdtemp()
        try:
            d = self.do_create(dir=dir)
            name = d.name
            del d # Rely on refcounting to invoke __del__
            self.assertFalse(os.path.exists(name),
                        "TemporaryDirectory %s exists after __del__" % name)
        finally:
            os.rmdir(dir)

    def test_del_on_shutdown(self):
        # A TemporaryDirectory may be cleaned up during shutdown
        with self.do_create() as dir:
            for mod in ('builtins', 'os', 'shutil', 'sys', 'tempfile', 'warnings'):
                code = """if True:
                    import builtins
                    import os
                    import shutil
                    import sys
                    import tempfile
                    import warnings

                    tmp = tempfile.TemporaryDirectory(dir={dir!r})
                    sys.stdout.buffer.write(tmp.name.encode())

                    tmp2 = os.path.join(tmp.name, 'test_dir')
                    os.mkdir(tmp2)
                    with open(os.path.join(tmp2, "test.txt"), "w") as f:
                        f.write("Hello world!")

                    {mod}.tmp = tmp

                    warnings.filterwarnings("always", category=ResourceWarning)
                    """.format(dir=dir, mod=mod)
                rc, out, err = script_helper.assert_python_ok("-c", code)
                tmp_name = out.decode().strip()
                self.assertFalse(os.path.exists(tmp_name),
                            "TemporaryDirectory %s exists after cleanup" % tmp_name)
                err = err.decode('utf-8', 'backslashreplace')
                self.assertNotIn("Exception ", err)
                self.assertIn("ResourceWarning: Implicitly cleaning up", err)

    def test_exit_on_shutdown(self):
        # Issue #22427
        with self.do_create() as dir:
            code = """if True:
                import sys
                import tempfile
                import warnings

                def generator():
                    with tempfile.TemporaryDirectory(dir={dir!r}) as tmp:
                        yield tmp
                g = generator()
                sys.stdout.buffer.write(next(g).encode())

                warnings.filterwarnings("always", category=ResourceWarning)
                """.format(dir=dir)
            rc, out, err = script_helper.assert_python_ok("-c", code)
            tmp_name = out.decode().strip()
            self.assertFalse(os.path.exists(tmp_name),
                        "TemporaryDirectory %s exists after cleanup" % tmp_name)
            err = err.decode('utf-8', 'backslashreplace')
            self.assertNotIn("Exception ", err)
            self.assertIn("ResourceWarning: Implicitly cleaning up", err)

    def test_warnings_on_cleanup(self):
        # ResourceWarning will be triggered by __del__
        with self.do_create() as dir:
            d = self.do_create(dir=dir, recurse=3)
            name = d.name

            # Check for the resource warning
            with support.check_warnings(('Implicitly', ResourceWarning), quiet=False):
                warnings.filterwarnings("always", category=ResourceWarning)
                del d
                support.gc_collect()
            self.assertFalse(os.path.exists(name),
                        "TemporaryDirectory %s exists after __del__" % name)

    def test_multiple_close(self):
        # Can be cleaned-up many times without error
        d = self.do_create()
        d.cleanup()
        d.cleanup()
        d.cleanup()

    def test_context_manager(self):
        # Can be used as a context manager
        d = self.do_create()
        with d as name:
            self.assertTrue(os.path.exists(name))
            self.assertEqual(name, d.name)
        self.assertFalse(os.path.exists(name))


def test_main():
    support.run_unittest(__name__)

if __name__ == "__main__":
    test_main()


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


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jul 2024 8.44 AM
root / linksafe
0755
__pycache__
--
25 Jul 2024 8.41 AM
root / linksafe
0755
audiodata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
capath
--
25 Jul 2024 8.41 AM
root / linksafe
0755
cjkencodings
--
25 Jul 2024 8.41 AM
root / linksafe
0755
data
--
25 Jul 2024 8.41 AM
root / linksafe
0755
decimaltestdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
encoded_modules
--
25 Jul 2024 8.41 AM
root / linksafe
0755
imghdrdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
sndhdrdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
subprocessdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
support
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_asyncio
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_email
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_importlib
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_json
--
25 Jul 2024 8.41 AM
root / linksafe
0755
tracedmodules
--
25 Jul 2024 8.41 AM
root / linksafe
0755
xmltestdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
185test.db
16 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
Sine-1000Hz-300ms.aif
60.25 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
__init__.py
0.046 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
__main__.py
0.054 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
_test_multiprocessing.py
120.529 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
audiotests.py
12.126 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
autotest.py
0.206 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
bad_coding.py
0.023 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
bad_coding2.py
0.029 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
badcert.pem
1.883 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
badkey.pem
2.111 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
badsyntax_3131.py
0.031 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
badsyntax_future10.py
0.093 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
badsyntax_future3.py
0.168 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
badsyntax_future4.py
0.149 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
badsyntax_future5.py
0.18 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
badsyntax_future6.py
0.157 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
badsyntax_future7.py
0.191 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
badsyntax_future8.py
0.119 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
badsyntax_future9.py
0.139 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
badsyntax_pep3120.py
0.014 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
buffer_tests.py
11.107 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
bytecode_helper.py
1.565 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
cfgparser.1
0.021 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
cfgparser.2
19.016 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
cfgparser.3
1.55 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
check_soundcard.vbs
0.401 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
cmath_testcases.txt
133.864 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
coding20731.py
0.018 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
curses_tests.py
1.225 KB
17 Apr 2024 5.09 PM
root / linksafe
0755
datetimetester.py
150.768 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
dh1024.pem
0.293 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
dis_module.py
0.074 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
doctest_aliases.py
0.234 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
double_const.py
1.184 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
empty.vbs
0.068 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
exception_hierarchy.txt
1.688 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
final_a.py
0.401 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
final_b.py
0.401 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
floating_points.txt
15.92 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
fork_wait.py
2.102 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
formatfloat_testcases.txt
7.451 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
future_test1.py
0.224 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
future_test2.py
0.146 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
gdb_sample.py
0.149 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
ieee754.txt
3.206 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
inspect_fodder.py
0.834 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
inspect_fodder2.py
1.386 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
keycert.passwd.pem
1.787 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
keycert.pem
1.741 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
keycert2.pem
1.753 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
keycert3.pem
3.955 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
keycert4.pem
3.962 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
list_tests.py
17.262 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
lock_tests.py
26.896 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
mailcap.txt
1.241 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
make_ssl_certs.py
5.513 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
mapping_tests.py
21.491 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
math_testcases.txt
23.186 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
memory_watchdog.py
0.839 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
mime.types
47.372 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
mock_socket.py
3.31 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
mp_fork_bomb.py
0.438 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
multibytecodec_support.py
14.436 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
nokia.pem
1.878 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
nullbytecert.pem
5.308 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
nullcert.pem
0 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
outstanding_bugs.py
0.361 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
pickletester.py
95.663 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
profilee.py
2.97 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
pstats.pck
65.046 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
pycacert.pem
4.206 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
pycakey.pem
1.664 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
pyclbr_input.py
0.633 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
pydoc_mod.py
0.691 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
pydocfodder.py
6.184 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
pystone.py
7.565 KB
17 Apr 2024 5.09 PM
root / linksafe
0755
randv2_32.pck
7.341 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
randv2_64.pck
7.192 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
randv3.pck
7.816 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
re_tests.py
31.061 KB
17 Apr 2024 5.09 PM
root / linksafe
0755
regrtest.py
60.323 KB
17 Apr 2024 5.09 PM
root / linksafe
0755
relimport.py
0.026 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
reperf.py
0.525 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
revocation.crl
0.61 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
sample_doctest.py
1.017 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
sample_doctest_no_docstrings.py
0.222 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
sample_doctest_no_doctests.py
0.263 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
script_helper.py
8.68 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
selfsigned_pythontestdotnet.pem
0.934 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
seq_tests.py
13.868 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
sgml_input.html
8.1 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
sha256.pem
8.148 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
sortperf.py
4.692 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
ssl_cert.pem
0.847 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
ssl_key.passwd.pem
0.94 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
ssl_key.pem
0.895 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
ssl_servers.py
6.879 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
ssltests.py
0.625 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
string_tests.py
63.248 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
talos-2019-0758.pem
1.299 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
test___all__.py
4.113 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test___future__.py
2.438 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test__locale.py
7.724 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test__opcode.py
0.887 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test__osx_support.py
11.5 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_abc.py
13.326 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_abstract_numbers.py
1.492 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_aifc.py
15.139 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_argparse.py
160.403 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_array.py
44.561 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ast.py
42.968 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_asynchat.py
10.899 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_asyncore.py
26.765 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_atexit.py
4.541 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_audioop.py
28.046 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_augassign.py
7.161 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_base64.py
28.902 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_bigaddrspace.py
2.919 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_bigmem.py
44.181 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_binascii.py
10.658 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_binhex.py
1.473 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_binop.py
12.844 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_bisect.py
13.633 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_bool.py
11.749 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_buffer.py
155.566 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_bufio.py
2.535 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_builtin.py
58.707 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_bytes.py
57.01 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_bz2.py
32.295 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_calendar.py
42.735 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_call.py
3.085 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_capi.py
18.044 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_cgi.py
18.94 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_cgitb.py
2.491 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_charmapcodec.py
1.752 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_class.py
14.136 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_cmath.py
21.468 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_cmd.py
6.114 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_cmd_line.py
19.911 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_cmd_line_script.py
20.207 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_code.py
3.541 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_code_module.py
2.938 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codeccallbacks.py
37.639 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecencodings_cn.py
3.382 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_codecencodings_hk.py
0.757 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecencodings_iso2022.py
1.43 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecencodings_jp.py
4.864 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecencodings_kr.py
3.029 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecencodings_tw.py
0.737 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecmaps_cn.py
0.753 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecmaps_hk.py
0.401 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecmaps_jp.py
1.728 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecmaps_kr.py
1.189 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecmaps_tw.py
0.713 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codecs.py
114.61 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_codeop.py
7.451 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_collections.py
50.445 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_colorsys.py
3.835 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_compare.py
3.9 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_compile.py
22.5 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_compileall.py
16.651 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_complex.py
27.483 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_concurrent_futures.py
23.27 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_configparser.py
70.428 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_contains.py
2.579 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_contextlib.py
25.77 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_copy.py
22.224 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_copyreg.py
4.118 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_cprofile.py
5.41 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_crashers.py
1.182 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_crypt.py
1.059 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_csv.py
41.481 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ctypes.py
0.18 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_curses.py
12.655 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_datetime.py
1.811 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dbm.py
5.517 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dbm_dumb.py
7.074 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dbm_gnu.py
3.275 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dbm_ndbm.py
1.584 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_decimal.py
198.924 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_decorators.py
9.598 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_defaultdict.py
5.941 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_deque.py
25.26 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_descr.py
175.812 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_descrtut.py
11.502 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_devpoll.py
4.528 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dict.py
32.362 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dictcomps.py
3.693 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dictviews.py
9.457 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_difflib.py
11.964 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_difflib_expect.html
100.862 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
test_dis.py
40.478 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_distutils.py
0.366 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_doctest.py
92.943 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_doctest.txt
0.293 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
test_doctest2.py
2.304 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_doctest2.txt
0.383 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
test_doctest3.txt
0.08 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
test_doctest4.txt
0.238 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
test_docxmlrpc.py
8.323 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dummy_thread.py
6.989 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dummy_threading.py
1.765 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dynamic.py
4.374 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_dynamicclassattribute.py
9.67 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ensurepip.py
11.421 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_enum.py
56.396 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_enumerate.py
8.005 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_eof.py
0.835 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_epoll.py
8.674 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_errno.py
1.144 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_exception_variations.py
3.941 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_exceptions.py
36.046 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_extcall.py
8.643 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_faulthandler.py
21.181 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_fcntl.py
5.098 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_file.py
11.095 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_file_eintr.py
10.089 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_filecmp.py
8.686 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_fileinput.py
34.129 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_fileio.py
15.577 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_finalization.py
14.21 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_float.py
59.14 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_flufl.py
0.816 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_fnmatch.py
2.839 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_fork1.py
3.694 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_format.py
16.815 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_fractions.py
24.769 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_frame.py
4.419 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ftplib.py
37.372 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_funcattrs.py
13.053 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_functools.py
59.518 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_future.py
4.048 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_future3.py
0.479 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_future4.py
0.103 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_future5.py
0.498 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_gc.py
33.03 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_gdb.py
36.707 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_generators.py
54.268 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_genericpath.py
15.839 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_genexps.py
7.115 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_getargs2.py
23.959 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_getopt.py
6.805 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_getpass.py
6.286 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_gettext.py
22.972 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_glob.py
7.486 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_global.py
1.25 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_grammar.py
33.535 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_grp.py
3.183 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_gzip.py
20.999 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_hash.py
11.435 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_hashlib.py
24.428 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_heapq.py
14.136 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_hmac.py
20.206 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_html.py
4.271 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_htmlparser.py
34.043 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_http_cookiejar.py
73.567 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_http_cookies.py
10.48 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_httplib.py
47.045 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_httpservers.py
32.383 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_idle.py
0.768 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_imaplib.py
17.491 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_imghdr.py
4.31 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_imp.py
19.419 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_import.py
39.276 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_index.py
8.366 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_inspect.py
119.284 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_int.py
17.767 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_int_literal.py
6.965 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_io.py
133.838 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ioctl.py
3.208 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ipaddress.py
74.265 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_isinstance.py
9.933 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_iter.py
29.426 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_iterlen.py
7.12 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_itertools.py
87.804 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_keyword.py
5.703 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_keywordonlyarg.py
7.14 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_kqueue.py
8.218 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_largefile.py
6.4 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_lib2to3.py
0.099 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_linecache.py
4.581 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_list.py
4.332 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_listcomps.py
3.761 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_locale.py
20.155 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_logging.py
141.361 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_long.py
48.019 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_longexp.py
0.301 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_lzma.py
71.027 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_macpath.py
6.005 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_macurl2path.py
1.796 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_mailbox.py
90.508 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_mailcap.py
9.005 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_marshal.py
17.7 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_math.py
45.894 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_memoryio.py
28.345 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_memoryview.py
16.229 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_metaclass.py
6.201 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_mimetypes.py
4.179 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_minidom.py
63.376 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_mmap.py
26.566 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_module.py
7.888 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_modulefinder.py
8.739 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_msilib.py
1.434 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_multibytecodec.py
10.07 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_multiprocessing_fork.py
0.17 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_multiprocessing_forkserver.py
0.176 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_multiprocessing_main_handling.py
11.162 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_multiprocessing_spawn.py
0.171 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_netrc.py
4.499 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_nis.py
1.188 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_nntplib.py
58.395 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_normalization.py
3.15 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ntpath.py
18.09 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_numeric_tower.py
7.272 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_opcodes.py
2.612 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_openpty.py
0.666 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_operator.py
18.172 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_optparse.py
60.8 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ordered_dict.py
11.983 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_os.py
98.208 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ossaudiodev.py
7.047 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_osx_env.py
1.311 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_parser.py
25.502 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pathlib.py
74.593 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pdb.py
33.247 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_peepholer.py
12.8 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pep247.py
2.189 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pep277.py
6.843 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pep292.py
9.583 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pep3120.py
1.241 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pep3131.py
0.954 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pep3151.py
7.308 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pep352.py
6.88 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pep380.py
28.924 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pickle.py
15.356 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pickletools.py
2.371 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pipes.py
6.321 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pkg.py
9.53 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pkgimport.py
2.722 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pkgutil.py
14.4 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_platform.py
12.122 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_plistlib.py
22.74 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_poll.py
6.398 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_popen.py
2.026 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_poplib.py
15.991 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_posix.py
50.822 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_posixpath.py
22.966 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pow.py
4.485 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pprint.py
29.852 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_print.py
4.158 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_profile.py
7.613 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_property.py
7.626 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pstats.py
1.265 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_pty.py
11.021 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pulldom.py
12.175 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pwd.py
4.127 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_py_compile.py
4.947 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pyclbr.py
6.847 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pydoc.py
39.373 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_pyexpat.py
27.2 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_queue.py
12.836 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_quopri.py
7.858 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_raise.py
11.078 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_random.py
31.32 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_range.py
22.896 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_re.py
73.164 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_readline.py
2.365 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_regrtest.py
10.362 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_reprlib.py
14.269 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_resource.py
6.458 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_richcmp.py
10.834 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_rlcompleter.py
4.592 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_robotparser.py
7.353 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_runpy.py
28.641 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_sax.py
41.756 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_sched.py
6.434 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_scope.py
19.76 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_script_helper.py
5.021 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_select.py
2.678 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_selectors.py
14.961 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_set.py
62.656 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_setcomps.py
3.703 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_shelve.py
6.123 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_shlex.py
5.773 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_shutil.py
72.374 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_signal.py
33.076 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_site.py
18.808 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_slice.py
8.084 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_smtpd.py
22.056 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_smtplib.py
35.021 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_smtpnet.py
2.759 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_sndhdr.py
0.848 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_socket.py
191.198 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_socketserver.py
10.829 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_sort.py
8.949 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_source_encoding.py
5.142 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_spwd.py
2.285 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_sqlite.py
0.872 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ssl.py
130.328 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ssl.py.openssl11
129.641 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
test_startfile.py
1.211 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_stat.py
6.833 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_statistics.py
68.885 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_strftime.py
7.424 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_string.py
7.694 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_stringprep.py
3.119 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_strlit.py
8.027 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_strptime.py
28.136 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_strtod.py
20.111 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_struct.py
26.905 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_structmembers.py
4.774 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_structseq.py
3.947 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_subprocess.py
108.35 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_sunau.py
4.554 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_sundry.py
2.169 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_super.py
4.431 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_support.py
10.094 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_symtable.py
5.82 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_syntax.py
17.645 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_sys.py
38.818 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_sys_setprofile.py
11.089 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_sys_settrace.py
24.66 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_sysconfig.py
16.425 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_syslog.py
1.198 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_systemtap.py
8.862 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_systemtap.py.systemtap
0 KB
17 Apr 2024 5.05 PM
root / linksafe
0644
test_tarfile.py
79.109 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_tcl.py
26.918 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_telnetlib.py
12.677 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_tempfile.py
44.399 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_textwrap.py
35.646 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_thread.py
8.091 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_threaded_import.py
8.25 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_threadedtempfile.py
1.887 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_threading.py
38.229 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_threading_local.py
6.136 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_threadsignals.py
9.22 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_time.py
29.969 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_timeit.py
11.919 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_timeout.py
11.112 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_tk.py
0.447 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_tokenize.py
48.448 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_trace.py
14.454 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_traceback.py
17.819 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_tracemalloc.py
30.244 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ttk_guionly.py
0.827 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ttk_textonly.py
0.396 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_tuple.py
6.987 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_typechecks.py
2.637 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_types.py
42.964 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_ucn.py
9.407 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_unary.py
1.711 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_unicode.py
122.379 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_unicode_file.py
5.728 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_unicodedata.py
12.064 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_unittest.py
0.279 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_univnewlines.py
3.83 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_unpack.py
2.558 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_unpack_ex.py
4.04 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_urllib.py
59.025 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_urllib2.py
65.683 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_urllib2_localnet.py
25.609 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_urllib2net.py
11.96 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_urllib_response.py
1.688 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_urllibnet.py
8.784 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_urlparse.py
51.508 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_userdict.py
7.711 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_userlist.py
1.852 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_userstring.py
1.457 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_uu.py
7.391 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_uuid.py
21.841 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_venv.py
16.164 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_wait3.py
1.13 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_wait4.py
1.113 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_warnings.py
37.125 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_wave.py
3.929 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_weakref.py
62.023 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_weakset.py
15.182 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_webbrowser.py
5.65 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_winreg.py
20.521 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_winsound.py
8.857 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_with.py
25.852 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_wsgiref.py
22.498 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_xdrlib.py
2.29 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_xml_dom_minicompat.py
4.182 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_xml_etree.py
106.562 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_xml_etree_c.py
3.988 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_xmlrpc.py
42.052 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_xmlrpc_net.py
1.027 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_zipfile.py
76.192 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_zipfile64.py
5.563 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_zipimport.py
17.693 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_zipimport_support.py
10.45 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
test_zlib.py
26.785 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
testcodec.py
1.021 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
testtar.tar
425 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
tf_inherit_check.py
0.563 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
threaded_import_hangers.py
1.449 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
time_hashlib.py
2.827 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt
0.434 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
0.296 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
0.411 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
0.319 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
tokenize_tests.txt
2.654 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
warning_tests.py
0.234 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
win_console_handler.py
1.383 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
xmltests.py
0.487 KB
17 Apr 2024 5.09 PM
root / linksafe
0644
zip_cp437_header.zip
0.264 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
zipdir.zip
0.365 KB
18 Mar 2019 4.51 PM
root / linksafe
0644

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