✘✘ 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/python37/lib64/python3.7/test//test_configparser.py
import collections
import configparser
import io
import os
import pathlib
import textwrap
import unittest
import warnings

from test import support


class SortedDict(collections.UserDict):

    def items(self):
        return sorted(self.data.items())

    def keys(self):
        return sorted(self.data.keys())

    def values(self):
        return [i[1] for i in self.items()]

    def iteritems(self):
        return iter(self.items())

    def iterkeys(self):
        return iter(self.keys())

    def itervalues(self):
        return iter(self.values())

    __iter__ = iterkeys


class CfgParserTestCaseClass:
    allow_no_value = False
    delimiters = ('=', ':')
    comment_prefixes = (';', '#')
    inline_comment_prefixes = (';', '#')
    empty_lines_in_values = True
    dict_type = configparser._default_dict
    strict = False
    default_section = configparser.DEFAULTSECT
    interpolation = configparser._UNSET

    def newconfig(self, defaults=None):
        arguments = dict(
            defaults=defaults,
            allow_no_value=self.allow_no_value,
            delimiters=self.delimiters,
            comment_prefixes=self.comment_prefixes,
            inline_comment_prefixes=self.inline_comment_prefixes,
            empty_lines_in_values=self.empty_lines_in_values,
            dict_type=self.dict_type,
            strict=self.strict,
            default_section=self.default_section,
            interpolation=self.interpolation,
        )
        instance = self.config_class(**arguments)
        return instance

    def fromstring(self, string, defaults=None):
        cf = self.newconfig(defaults)
        cf.read_string(string)
        return cf


class BasicTestCase(CfgParserTestCaseClass):

    def basic_test(self, cf):
        E = ['Commented Bar',
             'Foo Bar',
             'Internationalized Stuff',
             'Long Line',
             'Section\\with$weird%characters[\t',
             'Spaces',
             'Spacey Bar',
             'Spacey Bar From The Beginning',
             'Types',
             ]

        if self.allow_no_value:
            E.append('NoValue')
        E.sort()
        F = [('baz', 'qwe'), ('foo', 'bar3')]

        # API access
        L = cf.sections()
        L.sort()
        eq = self.assertEqual
        eq(L, E)
        L = cf.items('Spacey Bar From The Beginning')
        L.sort()
        eq(L, F)

        # mapping access
        L = [section for section in cf]
        L.sort()
        E.append(self.default_section)
        E.sort()
        eq(L, E)
        L = cf['Spacey Bar From The Beginning'].items()
        L = sorted(list(L))
        eq(L, F)
        L = cf.items()
        L = sorted(list(L))
        self.assertEqual(len(L), len(E))
        for name, section in L:
            eq(name, section.name)
        eq(cf.defaults(), cf[self.default_section])

        # The use of spaces in the section names serves as a
        # regression test for SourceForge bug #583248:
        # http://www.python.org/sf/583248

        # API access
        eq(cf.get('Foo Bar', 'foo'), 'bar1')
        eq(cf.get('Spacey Bar', 'foo'), 'bar2')
        eq(cf.get('Spacey Bar From The Beginning', 'foo'), 'bar3')
        eq(cf.get('Spacey Bar From The Beginning', 'baz'), 'qwe')
        eq(cf.get('Commented Bar', 'foo'), 'bar4')
        eq(cf.get('Commented Bar', 'baz'), 'qwe')
        eq(cf.get('Spaces', 'key with spaces'), 'value')
        eq(cf.get('Spaces', 'another with spaces'), 'splat!')
        eq(cf.getint('Types', 'int'), 42)
        eq(cf.get('Types', 'int'), "42")
        self.assertAlmostEqual(cf.getfloat('Types', 'float'), 0.44)
        eq(cf.get('Types', 'float'), "0.44")
        eq(cf.getboolean('Types', 'boolean'), False)
        eq(cf.get('Types', '123'), 'strange but acceptable')
        if self.allow_no_value:
            eq(cf.get('NoValue', 'option-without-value'), None)

        # test vars= and fallback=
        eq(cf.get('Foo Bar', 'foo', fallback='baz'), 'bar1')
        eq(cf.get('Foo Bar', 'foo', vars={'foo': 'baz'}), 'baz')
        with self.assertRaises(configparser.NoSectionError):
            cf.get('No Such Foo Bar', 'foo')
        with self.assertRaises(configparser.NoOptionError):
            cf.get('Foo Bar', 'no-such-foo')
        eq(cf.get('No Such Foo Bar', 'foo', fallback='baz'), 'baz')
        eq(cf.get('Foo Bar', 'no-such-foo', fallback='baz'), 'baz')
        eq(cf.get('Spacey Bar', 'foo', fallback=None), 'bar2')
        eq(cf.get('No Such Spacey Bar', 'foo', fallback=None), None)
        eq(cf.getint('Types', 'int', fallback=18), 42)
        eq(cf.getint('Types', 'no-such-int', fallback=18), 18)
        eq(cf.getint('Types', 'no-such-int', fallback="18"), "18") # sic!
        with self.assertRaises(configparser.NoOptionError):
            cf.getint('Types', 'no-such-int')
        self.assertAlmostEqual(cf.getfloat('Types', 'float',
                                           fallback=0.0), 0.44)
        self.assertAlmostEqual(cf.getfloat('Types', 'no-such-float',
                                           fallback=0.0), 0.0)
        eq(cf.getfloat('Types', 'no-such-float', fallback="0.0"), "0.0") # sic!
        with self.assertRaises(configparser.NoOptionError):
            cf.getfloat('Types', 'no-such-float')
        eq(cf.getboolean('Types', 'boolean', fallback=True), False)
        eq(cf.getboolean('Types', 'no-such-boolean', fallback="yes"),
           "yes") # sic!
        eq(cf.getboolean('Types', 'no-such-boolean', fallback=True), True)
        with self.assertRaises(configparser.NoOptionError):
            cf.getboolean('Types', 'no-such-boolean')
        eq(cf.getboolean('No Such Types', 'boolean', fallback=True), True)
        if self.allow_no_value:
            eq(cf.get('NoValue', 'option-without-value', fallback=False), None)
            eq(cf.get('NoValue', 'no-such-option-without-value',
                      fallback=False), False)

        # mapping access
        eq(cf['Foo Bar']['foo'], 'bar1')
        eq(cf['Spacey Bar']['foo'], 'bar2')
        section = cf['Spacey Bar From The Beginning']
        eq(section.name, 'Spacey Bar From The Beginning')
        self.assertIs(section.parser, cf)
        with self.assertRaises(AttributeError):
            section.name = 'Name is read-only'
        with self.assertRaises(AttributeError):
            section.parser = 'Parser is read-only'
        eq(section['foo'], 'bar3')
        eq(section['baz'], 'qwe')
        eq(cf['Commented Bar']['foo'], 'bar4')
        eq(cf['Commented Bar']['baz'], 'qwe')
        eq(cf['Spaces']['key with spaces'], 'value')
        eq(cf['Spaces']['another with spaces'], 'splat!')
        eq(cf['Long Line']['foo'],
           'this line is much, much longer than my editor\nlikes it.')
        if self.allow_no_value:
            eq(cf['NoValue']['option-without-value'], None)
        # test vars= and fallback=
        eq(cf['Foo Bar'].get('foo', 'baz'), 'bar1')
        eq(cf['Foo Bar'].get('foo', fallback='baz'), 'bar1')
        eq(cf['Foo Bar'].get('foo', vars={'foo': 'baz'}), 'baz')
        with self.assertRaises(KeyError):
            cf['No Such Foo Bar']['foo']
        with self.assertRaises(KeyError):
            cf['Foo Bar']['no-such-foo']
        with self.assertRaises(KeyError):
            cf['No Such Foo Bar'].get('foo', fallback='baz')
        eq(cf['Foo Bar'].get('no-such-foo', 'baz'), 'baz')
        eq(cf['Foo Bar'].get('no-such-foo', fallback='baz'), 'baz')
        eq(cf['Foo Bar'].get('no-such-foo'), None)
        eq(cf['Spacey Bar'].get('foo', None), 'bar2')
        eq(cf['Spacey Bar'].get('foo', fallback=None), 'bar2')
        with self.assertRaises(KeyError):
            cf['No Such Spacey Bar'].get('foo', None)
        eq(cf['Types'].getint('int', 18), 42)
        eq(cf['Types'].getint('int', fallback=18), 42)
        eq(cf['Types'].getint('no-such-int', 18), 18)
        eq(cf['Types'].getint('no-such-int', fallback=18), 18)
        eq(cf['Types'].getint('no-such-int', "18"), "18") # sic!
        eq(cf['Types'].getint('no-such-int', fallback="18"), "18") # sic!
        eq(cf['Types'].getint('no-such-int'), None)
        self.assertAlmostEqual(cf['Types'].getfloat('float', 0.0), 0.44)
        self.assertAlmostEqual(cf['Types'].getfloat('float',
                                                    fallback=0.0), 0.44)
        self.assertAlmostEqual(cf['Types'].getfloat('no-such-float', 0.0), 0.0)
        self.assertAlmostEqual(cf['Types'].getfloat('no-such-float',
                                                    fallback=0.0), 0.0)
        eq(cf['Types'].getfloat('no-such-float', "0.0"), "0.0") # sic!
        eq(cf['Types'].getfloat('no-such-float', fallback="0.0"), "0.0") # sic!
        eq(cf['Types'].getfloat('no-such-float'), None)
        eq(cf['Types'].getboolean('boolean', True), False)
        eq(cf['Types'].getboolean('boolean', fallback=True), False)
        eq(cf['Types'].getboolean('no-such-boolean', "yes"), "yes") # sic!
        eq(cf['Types'].getboolean('no-such-boolean', fallback="yes"),
           "yes") # sic!
        eq(cf['Types'].getboolean('no-such-boolean', True), True)
        eq(cf['Types'].getboolean('no-such-boolean', fallback=True), True)
        eq(cf['Types'].getboolean('no-such-boolean'), None)
        if self.allow_no_value:
            eq(cf['NoValue'].get('option-without-value', False), None)
            eq(cf['NoValue'].get('option-without-value', fallback=False), None)
            eq(cf['NoValue'].get('no-such-option-without-value', False), False)
            eq(cf['NoValue'].get('no-such-option-without-value',
                      fallback=False), False)

        # Make sure the right things happen for remove_section() and
        # remove_option(); added to include check for SourceForge bug #123324.

        cf[self.default_section]['this_value'] = '1'
        cf[self.default_section]['that_value'] = '2'

        # API access
        self.assertTrue(cf.remove_section('Spaces'))
        self.assertFalse(cf.has_option('Spaces', 'key with spaces'))
        self.assertFalse(cf.remove_section('Spaces'))
        self.assertFalse(cf.remove_section(self.default_section))
        self.assertTrue(cf.remove_option('Foo Bar', 'foo'),
                        "remove_option() failed to report existence of option")
        self.assertFalse(cf.has_option('Foo Bar', 'foo'),
                    "remove_option() failed to remove option")
        self.assertFalse(cf.remove_option('Foo Bar', 'foo'),
                    "remove_option() failed to report non-existence of option"
                    " that was removed")
        self.assertTrue(cf.has_option('Foo Bar', 'this_value'))
        self.assertFalse(cf.remove_option('Foo Bar', 'this_value'))
        self.assertTrue(cf.remove_option(self.default_section, 'this_value'))
        self.assertFalse(cf.has_option('Foo Bar', 'this_value'))
        self.assertFalse(cf.remove_option(self.default_section, 'this_value'))

        with self.assertRaises(configparser.NoSectionError) as cm:
            cf.remove_option('No Such Section', 'foo')
        self.assertEqual(cm.exception.args, ('No Such Section',))

        eq(cf.get('Long Line', 'foo'),
           'this line is much, much longer than my editor\nlikes it.')

        # mapping access
        del cf['Types']
        self.assertFalse('Types' in cf)
        with self.assertRaises(KeyError):
            del cf['Types']
        with self.assertRaises(ValueError):
            del cf[self.default_section]
        del cf['Spacey Bar']['foo']
        self.assertFalse('foo' in cf['Spacey Bar'])
        with self.assertRaises(KeyError):
            del cf['Spacey Bar']['foo']
        self.assertTrue('that_value' in cf['Spacey Bar'])
        with self.assertRaises(KeyError):
            del cf['Spacey Bar']['that_value']
        del cf[self.default_section]['that_value']
        self.assertFalse('that_value' in cf['Spacey Bar'])
        with self.assertRaises(KeyError):
            del cf[self.default_section]['that_value']
        with self.assertRaises(KeyError):
            del cf['No Such Section']['foo']

        # Don't add new asserts below in this method as most of the options
        # and sections are now removed.

    def test_basic(self):
        config_string = """\
[Foo Bar]
foo{0[0]}bar1
[Spacey Bar]
foo {0[0]} bar2
[Spacey Bar From The Beginning]
  foo {0[0]} bar3
  baz {0[0]} qwe
[Commented Bar]
foo{0[1]} bar4 {1[1]} comment
baz{0[0]}qwe {1[0]}another one
[Long Line]
foo{0[1]} this line is much, much longer than my editor
   likes it.
[Section\\with$weird%characters[\t]
[Internationalized Stuff]
foo[bg]{0[1]} Bulgarian
foo{0[0]}Default
foo[en]{0[0]}English
foo[de]{0[0]}Deutsch
[Spaces]
key with spaces {0[1]} value
another with spaces {0[0]} splat!
[Types]
int {0[1]} 42
float {0[0]} 0.44
boolean {0[0]} NO
123 {0[1]} strange but acceptable
""".format(self.delimiters, self.comment_prefixes)
        if self.allow_no_value:
            config_string += (
                "[NoValue]\n"
                "option-without-value\n"
                )
        cf = self.fromstring(config_string)
        self.basic_test(cf)
        if self.strict:
            with self.assertRaises(configparser.DuplicateOptionError):
                cf.read_string(textwrap.dedent("""\
                    [Duplicate Options Here]
                    option {0[0]} with a value
                    option {0[1]} with another value
                """.format(self.delimiters)))
            with self.assertRaises(configparser.DuplicateSectionError):
                cf.read_string(textwrap.dedent("""\
                    [And Now For Something]
                    completely different {0[0]} True
                    [And Now For Something]
                    the larch {0[1]} 1
                """.format(self.delimiters)))
        else:
            cf.read_string(textwrap.dedent("""\
                [Duplicate Options Here]
                option {0[0]} with a value
                option {0[1]} with another value
            """.format(self.delimiters)))

            cf.read_string(textwrap.dedent("""\
                [And Now For Something]
                completely different {0[0]} True
                [And Now For Something]
                the larch {0[1]} 1
            """.format(self.delimiters)))

    def test_basic_from_dict(self):
        config = {
            "Foo Bar": {
                "foo": "bar1",
            },
            "Spacey Bar": {
                "foo": "bar2",
            },
            "Spacey Bar From The Beginning": {
                "foo": "bar3",
                "baz": "qwe",
            },
            "Commented Bar": {
                "foo": "bar4",
                "baz": "qwe",
            },
            "Long Line": {
                "foo": "this line is much, much longer than my editor\nlikes "
                       "it.",
            },
            "Section\\with$weird%characters[\t": {
            },
            "Internationalized Stuff": {
                "foo[bg]": "Bulgarian",
                "foo": "Default",
                "foo[en]": "English",
                "foo[de]": "Deutsch",
            },
            "Spaces": {
                "key with spaces": "value",
                "another with spaces": "splat!",
            },
            "Types": {
                "int": 42,
                "float": 0.44,
                "boolean": False,
                123: "strange but acceptable",
            },
        }
        if self.allow_no_value:
            config.update({
                "NoValue": {
                    "option-without-value": None,
                }
            })
        cf = self.newconfig()
        cf.read_dict(config)
        self.basic_test(cf)
        if self.strict:
            with self.assertRaises(configparser.DuplicateSectionError):
                cf.read_dict({
                    '1': {'key': 'value'},
                    1: {'key2': 'value2'},
                })
            with self.assertRaises(configparser.DuplicateOptionError):
                cf.read_dict({
                    "Duplicate Options Here": {
                        'option': 'with a value',
                        'OPTION': 'with another value',
                    },
                })
        else:
            cf.read_dict({
                'section': {'key': 'value'},
                'SECTION': {'key2': 'value2'},
            })
            cf.read_dict({
                "Duplicate Options Here": {
                    'option': 'with a value',
                    'OPTION': 'with another value',
                },
            })

    def test_case_sensitivity(self):
        cf = self.newconfig()
        cf.add_section("A")
        cf.add_section("a")
        cf.add_section("B")
        L = cf.sections()
        L.sort()
        eq = self.assertEqual
        eq(L, ["A", "B", "a"])
        cf.set("a", "B", "value")
        eq(cf.options("a"), ["b"])
        eq(cf.get("a", "b"), "value",
           "could not locate option, expecting case-insensitive option names")
        with self.assertRaises(configparser.NoSectionError):
            # section names are case-sensitive
            cf.set("b", "A", "value")
        self.assertTrue(cf.has_option("a", "b"))
        self.assertFalse(cf.has_option("b", "b"))
        cf.set("A", "A-B", "A-B value")
        for opt in ("a-b", "A-b", "a-B", "A-B"):
            self.assertTrue(
                cf.has_option("A", opt),
                "has_option() returned false for option which should exist")
        eq(cf.options("A"), ["a-b"])
        eq(cf.options("a"), ["b"])
        cf.remove_option("a", "B")
        eq(cf.options("a"), [])

        # SF bug #432369:
        cf = self.fromstring(
            "[MySection]\nOption{} first line   \n\tsecond line   \n".format(
                self.delimiters[0]))
        eq(cf.options("MySection"), ["option"])
        eq(cf.get("MySection", "Option"), "first line\nsecond line")

        # SF bug #561822:
        cf = self.fromstring("[section]\n"
                             "nekey{}nevalue\n".format(self.delimiters[0]),
                             defaults={"key":"value"})
        self.assertTrue(cf.has_option("section", "Key"))


    def test_case_sensitivity_mapping_access(self):
        cf = self.newconfig()
        cf["A"] = {}
        cf["a"] = {"B": "value"}
        cf["B"] = {}
        L = [section for section in cf]
        L.sort()
        eq = self.assertEqual
        elem_eq = self.assertCountEqual
        eq(L, sorted(["A", "B", self.default_section, "a"]))
        eq(cf["a"].keys(), {"b"})
        eq(cf["a"]["b"], "value",
           "could not locate option, expecting case-insensitive option names")
        with self.assertRaises(KeyError):
            # section names are case-sensitive
            cf["b"]["A"] = "value"
        self.assertTrue("b" in cf["a"])
        cf["A"]["A-B"] = "A-B value"
        for opt in ("a-b", "A-b", "a-B", "A-B"):
            self.assertTrue(
                opt in cf["A"],
                "has_option() returned false for option which should exist")
        eq(cf["A"].keys(), {"a-b"})
        eq(cf["a"].keys(), {"b"})
        del cf["a"]["B"]
        elem_eq(cf["a"].keys(), {})

        # SF bug #432369:
        cf = self.fromstring(
            "[MySection]\nOption{} first line   \n\tsecond line   \n".format(
                self.delimiters[0]))
        eq(cf["MySection"].keys(), {"option"})
        eq(cf["MySection"]["Option"], "first line\nsecond line")

        # SF bug #561822:
        cf = self.fromstring("[section]\n"
                             "nekey{}nevalue\n".format(self.delimiters[0]),
                             defaults={"key":"value"})
        self.assertTrue("Key" in cf["section"])

    def test_default_case_sensitivity(self):
        cf = self.newconfig({"foo": "Bar"})
        self.assertEqual(
            cf.get(self.default_section, "Foo"), "Bar",
            "could not locate option, expecting case-insensitive option names")
        cf = self.newconfig({"Foo": "Bar"})
        self.assertEqual(
            cf.get(self.default_section, "Foo"), "Bar",
            "could not locate option, expecting case-insensitive defaults")

    def test_parse_errors(self):
        cf = self.newconfig()
        self.parse_error(cf, configparser.ParsingError,
                         "[Foo]\n"
                         "{}val-without-opt-name\n".format(self.delimiters[0]))
        self.parse_error(cf, configparser.ParsingError,
                         "[Foo]\n"
                         "{}val-without-opt-name\n".format(self.delimiters[1]))
        e = self.parse_error(cf, configparser.MissingSectionHeaderError,
                             "No Section!\n")
        self.assertEqual(e.args, ('<???>', 1, "No Section!\n"))
        if not self.allow_no_value:
            e = self.parse_error(cf, configparser.ParsingError,
                                "[Foo]\n  wrong-indent\n")
            self.assertEqual(e.args, ('<???>',))
            # read_file on a real file
            tricky = support.findfile("cfgparser.3")
            if self.delimiters[0] == '=':
                error = configparser.ParsingError
                expected = (tricky,)
            else:
                error = configparser.MissingSectionHeaderError
                expected = (tricky, 1,
                            '  # INI with as many tricky parts as possible\n')
            with open(tricky, encoding='utf-8') as f:
                e = self.parse_error(cf, error, f)
            self.assertEqual(e.args, expected)

    def parse_error(self, cf, exc, src):
        if hasattr(src, 'readline'):
            sio = src
        else:
            sio = io.StringIO(src)
        with self.assertRaises(exc) as cm:
            cf.read_file(sio)
        return cm.exception

    def test_query_errors(self):
        cf = self.newconfig()
        self.assertEqual(cf.sections(), [],
                         "new ConfigParser should have no defined sections")
        self.assertFalse(cf.has_section("Foo"),
                         "new ConfigParser should have no acknowledged "
                         "sections")
        with self.assertRaises(configparser.NoSectionError):
            cf.options("Foo")
        with self.assertRaises(configparser.NoSectionError):
            cf.set("foo", "bar", "value")
        e = self.get_error(cf, configparser.NoSectionError, "foo", "bar")
        self.assertEqual(e.args, ("foo",))
        cf.add_section("foo")
        e = self.get_error(cf, configparser.NoOptionError, "foo", "bar")
        self.assertEqual(e.args, ("bar", "foo"))

    def get_error(self, cf, exc, section, option):
        try:
            cf.get(section, option)
        except exc as e:
            return e
        else:
            self.fail("expected exception type %s.%s"
                      % (exc.__module__, exc.__qualname__))

    def test_boolean(self):
        cf = self.fromstring(
            "[BOOLTEST]\n"
            "T1{equals}1\n"
            "T2{equals}TRUE\n"
            "T3{equals}True\n"
            "T4{equals}oN\n"
            "T5{equals}yes\n"
            "F1{equals}0\n"
            "F2{equals}FALSE\n"
            "F3{equals}False\n"
            "F4{equals}oFF\n"
            "F5{equals}nO\n"
            "E1{equals}2\n"
            "E2{equals}foo\n"
            "E3{equals}-1\n"
            "E4{equals}0.1\n"
            "E5{equals}FALSE AND MORE".format(equals=self.delimiters[0])
            )
        for x in range(1, 5):
            self.assertTrue(cf.getboolean('BOOLTEST', 't%d' % x))
            self.assertFalse(cf.getboolean('BOOLTEST', 'f%d' % x))
            self.assertRaises(ValueError,
                              cf.getboolean, 'BOOLTEST', 'e%d' % x)

    def test_weird_errors(self):
        cf = self.newconfig()
        cf.add_section("Foo")
        with self.assertRaises(configparser.DuplicateSectionError) as cm:
            cf.add_section("Foo")
        e = cm.exception
        self.assertEqual(str(e), "Section 'Foo' already exists")
        self.assertEqual(e.args, ("Foo", None, None))

        if self.strict:
            with self.assertRaises(configparser.DuplicateSectionError) as cm:
                cf.read_string(textwrap.dedent("""\
                    [Foo]
                    will this be added{equals}True
                    [Bar]
                    what about this{equals}True
                    [Foo]
                    oops{equals}this won't
                """.format(equals=self.delimiters[0])), source='<foo-bar>')
            e = cm.exception
            self.assertEqual(str(e), "While reading from '<foo-bar>' "
                                     "[line  5]: section 'Foo' already exists")
            self.assertEqual(e.args, ("Foo", '<foo-bar>', 5))

            with self.assertRaises(configparser.DuplicateOptionError) as cm:
                cf.read_dict({'Bar': {'opt': 'val', 'OPT': 'is really `opt`'}})
            e = cm.exception
            self.assertEqual(str(e), "While reading from '<dict>': option "
                                     "'opt' in section 'Bar' already exists")
            self.assertEqual(e.args, ("Bar", "opt", "<dict>", None))

    def test_write(self):
        config_string = (
            "[Long Line]\n"
            "foo{0[0]} this line is much, much longer than my editor\n"
            "   likes it.\n"
            "[{default_section}]\n"
            "foo{0[1]} another very\n"
            " long line\n"
            "[Long Line - With Comments!]\n"
            "test {0[1]} we        {comment} can\n"
            "            also      {comment} place\n"
            "            comments  {comment} in\n"
            "            multiline {comment} values"
            "\n".format(self.delimiters, comment=self.comment_prefixes[0],
                        default_section=self.default_section)
            )
        if self.allow_no_value:
            config_string += (
            "[Valueless]\n"
            "option-without-value\n"
            )

        cf = self.fromstring(config_string)
        for space_around_delimiters in (True, False):
            output = io.StringIO()
            cf.write(output, space_around_delimiters=space_around_delimiters)
            delimiter = self.delimiters[0]
            if space_around_delimiters:
                delimiter = " {} ".format(delimiter)
            expect_string = (
                "[{default_section}]\n"
                "foo{equals}another very\n"
                "\tlong line\n"
                "\n"
                "[Long Line]\n"
                "foo{equals}this line is much, much longer than my editor\n"
                "\tlikes it.\n"
                "\n"
                "[Long Line - With Comments!]\n"
                "test{equals}we\n"
                "\talso\n"
                "\tcomments\n"
                "\tmultiline\n"
                "\n".format(equals=delimiter,
                            default_section=self.default_section)
                )
            if self.allow_no_value:
                expect_string += (
                    "[Valueless]\n"
                    "option-without-value\n"
                    "\n"
                    )
            self.assertEqual(output.getvalue(), expect_string)

    def test_set_string_types(self):
        cf = self.fromstring("[sect]\n"
                             "option1{eq}foo\n".format(eq=self.delimiters[0]))
        # Check that we don't get an exception when setting values in
        # an existing section using strings:
        class mystr(str):
            pass
        cf.set("sect", "option1", "splat")
        cf.set("sect", "option1", mystr("splat"))
        cf.set("sect", "option2", "splat")
        cf.set("sect", "option2", mystr("splat"))
        cf.set("sect", "option1", "splat")
        cf.set("sect", "option2", "splat")

    def test_read_returns_file_list(self):
        if self.delimiters[0] != '=':
            self.skipTest('incompatible format')
        file1 = support.findfile("cfgparser.1")
        # check when we pass a mix of readable and non-readable files:
        cf = self.newconfig()
        parsed_files = cf.read([file1, "nonexistent-file"])
        self.assertEqual(parsed_files, [file1])
        self.assertEqual(cf.get("Foo Bar", "foo"), "newbar")
        # check when we pass only a filename:
        cf = self.newconfig()
        parsed_files = cf.read(file1)
        self.assertEqual(parsed_files, [file1])
        self.assertEqual(cf.get("Foo Bar", "foo"), "newbar")
        # check when we pass only a Path object:
        cf = self.newconfig()
        parsed_files = cf.read(pathlib.Path(file1))
        self.assertEqual(parsed_files, [file1])
        self.assertEqual(cf.get("Foo Bar", "foo"), "newbar")
        # check when we passed both a filename and a Path object:
        cf = self.newconfig()
        parsed_files = cf.read([pathlib.Path(file1), file1])
        self.assertEqual(parsed_files, [file1, file1])
        self.assertEqual(cf.get("Foo Bar", "foo"), "newbar")
        # check when we pass only missing files:
        cf = self.newconfig()
        parsed_files = cf.read(["nonexistent-file"])
        self.assertEqual(parsed_files, [])
        # check when we pass no files:
        cf = self.newconfig()
        parsed_files = cf.read([])
        self.assertEqual(parsed_files, [])

    def test_read_returns_file_list_with_bytestring_path(self):
        if self.delimiters[0] != '=':
            self.skipTest('incompatible format')
        file1_bytestring = support.findfile("cfgparser.1").encode()
        # check when passing an existing bytestring path
        cf = self.newconfig()
        parsed_files = cf.read(file1_bytestring)
        self.assertEqual(parsed_files, [file1_bytestring])
        # check when passing an non-existing bytestring path
        cf = self.newconfig()
        parsed_files = cf.read(b'nonexistent-file')
        self.assertEqual(parsed_files, [])
        # check when passing both an existing and non-existing bytestring path
        cf = self.newconfig()
        parsed_files = cf.read([file1_bytestring, b'nonexistent-file'])
        self.assertEqual(parsed_files, [file1_bytestring])

    # shared by subclasses
    def get_interpolation_config(self):
        return self.fromstring(
            "[Foo]\n"
            "bar{equals}something %(with1)s interpolation (1 step)\n"
            "bar9{equals}something %(with9)s lots of interpolation (9 steps)\n"
            "bar10{equals}something %(with10)s lots of interpolation (10 steps)\n"
            "bar11{equals}something %(with11)s lots of interpolation (11 steps)\n"
            "with11{equals}%(with10)s\n"
            "with10{equals}%(with9)s\n"
            "with9{equals}%(with8)s\n"
            "with8{equals}%(With7)s\n"
            "with7{equals}%(WITH6)s\n"
            "with6{equals}%(with5)s\n"
            "With5{equals}%(with4)s\n"
            "WITH4{equals}%(with3)s\n"
            "with3{equals}%(with2)s\n"
            "with2{equals}%(with1)s\n"
            "with1{equals}with\n"
            "\n"
            "[Mutual Recursion]\n"
            "foo{equals}%(bar)s\n"
            "bar{equals}%(foo)s\n"
            "\n"
            "[Interpolation Error]\n"
            # no definition for 'reference'
            "name{equals}%(reference)s\n".format(equals=self.delimiters[0]))

    def check_items_config(self, expected):
        cf = self.fromstring("""
            [section]
            name {0[0]} %(value)s
            key{0[1]} |%(name)s|
            getdefault{0[1]} |%(default)s|
        """.format(self.delimiters), defaults={"default": "<default>"})
        L = list(cf.items("section", vars={'value': 'value'}))
        L.sort()
        self.assertEqual(L, expected)
        with self.assertRaises(configparser.NoSectionError):
            cf.items("no such section")

    def test_popitem(self):
        cf = self.fromstring("""
            [section1]
            name1 {0[0]} value1
            [section2]
            name2 {0[0]} value2
            [section3]
            name3 {0[0]} value3
        """.format(self.delimiters), defaults={"default": "<default>"})
        self.assertEqual(cf.popitem()[0], 'section1')
        self.assertEqual(cf.popitem()[0], 'section2')
        self.assertEqual(cf.popitem()[0], 'section3')
        with self.assertRaises(KeyError):
            cf.popitem()

    def test_clear(self):
        cf = self.newconfig({"foo": "Bar"})
        self.assertEqual(
            cf.get(self.default_section, "Foo"), "Bar",
            "could not locate option, expecting case-insensitive option names")
        cf['zing'] = {'option1': 'value1', 'option2': 'value2'}
        self.assertEqual(cf.sections(), ['zing'])
        self.assertEqual(set(cf['zing'].keys()), {'option1', 'option2', 'foo'})
        cf.clear()
        self.assertEqual(set(cf.sections()), set())
        self.assertEqual(set(cf[self.default_section].keys()), {'foo'})

    def test_setitem(self):
        cf = self.fromstring("""
            [section1]
            name1 {0[0]} value1
            [section2]
            name2 {0[0]} value2
            [section3]
            name3 {0[0]} value3
        """.format(self.delimiters), defaults={"nameD": "valueD"})
        self.assertEqual(set(cf['section1'].keys()), {'name1', 'named'})
        self.assertEqual(set(cf['section2'].keys()), {'name2', 'named'})
        self.assertEqual(set(cf['section3'].keys()), {'name3', 'named'})
        self.assertEqual(cf['section1']['name1'], 'value1')
        self.assertEqual(cf['section2']['name2'], 'value2')
        self.assertEqual(cf['section3']['name3'], 'value3')
        self.assertEqual(cf.sections(), ['section1', 'section2', 'section3'])
        cf['section2'] = {'name22': 'value22'}
        self.assertEqual(set(cf['section2'].keys()), {'name22', 'named'})
        self.assertEqual(cf['section2']['name22'], 'value22')
        self.assertNotIn('name2', cf['section2'])
        self.assertEqual(cf.sections(), ['section1', 'section2', 'section3'])
        cf['section3'] = {}
        self.assertEqual(set(cf['section3'].keys()), {'named'})
        self.assertNotIn('name3', cf['section3'])
        self.assertEqual(cf.sections(), ['section1', 'section2', 'section3'])
        cf[self.default_section] = {}
        self.assertEqual(set(cf[self.default_section].keys()), set())
        self.assertEqual(set(cf['section1'].keys()), {'name1'})
        self.assertEqual(set(cf['section2'].keys()), {'name22'})
        self.assertEqual(set(cf['section3'].keys()), set())
        self.assertEqual(cf.sections(), ['section1', 'section2', 'section3'])

    def test_invalid_multiline_value(self):
        if self.allow_no_value:
            self.skipTest('if no_value is allowed, ParsingError is not raised')

        invalid = textwrap.dedent("""\
            [DEFAULT]
            test {0} test
            invalid""".format(self.delimiters[0])
        )
        cf = self.newconfig()
        with self.assertRaises(configparser.ParsingError):
            cf.read_string(invalid)
        self.assertEqual(cf.get('DEFAULT', 'test'), 'test')
        self.assertEqual(cf['DEFAULT']['test'], 'test')


class StrictTestCase(BasicTestCase, unittest.TestCase):
    config_class = configparser.RawConfigParser
    strict = True


class ConfigParserTestCase(BasicTestCase, unittest.TestCase):
    config_class = configparser.ConfigParser

    def test_interpolation(self):
        cf = self.get_interpolation_config()
        eq = self.assertEqual
        eq(cf.get("Foo", "bar"), "something with interpolation (1 step)")
        eq(cf.get("Foo", "bar9"),
           "something with lots of interpolation (9 steps)")
        eq(cf.get("Foo", "bar10"),
           "something with lots of interpolation (10 steps)")
        e = self.get_error(cf, configparser.InterpolationDepthError, "Foo", "bar11")
        if self.interpolation == configparser._UNSET:
            self.assertEqual(e.args, ("bar11", "Foo",
                "something %(with11)s lots of interpolation (11 steps)"))
        elif isinstance(self.interpolation, configparser.LegacyInterpolation):
            self.assertEqual(e.args, ("bar11", "Foo",
                "something %(with11)s lots of interpolation (11 steps)"))

    def test_interpolation_missing_value(self):
        cf = self.get_interpolation_config()
        e = self.get_error(cf, configparser.InterpolationMissingOptionError,
                           "Interpolation Error", "name")
        self.assertEqual(e.reference, "reference")
        self.assertEqual(e.section, "Interpolation Error")
        self.assertEqual(e.option, "name")
        if self.interpolation == configparser._UNSET:
            self.assertEqual(e.args, ('name', 'Interpolation Error',
                                    '%(reference)s', 'reference'))
        elif isinstance(self.interpolation, configparser.LegacyInterpolation):
            self.assertEqual(e.args, ('name', 'Interpolation Error',
                                    '%(reference)s', 'reference'))

    def test_items(self):
        self.check_items_config([('default', '<default>'),
                                 ('getdefault', '|<default>|'),
                                 ('key', '|value|'),
                                 ('name', 'value'),
                                 ('value', 'value')])

    def test_safe_interpolation(self):
        # See http://www.python.org/sf/511737
        cf = self.fromstring("[section]\n"
                             "option1{eq}xxx\n"
                             "option2{eq}%(option1)s/xxx\n"
                             "ok{eq}%(option1)s/%%s\n"
                             "not_ok{eq}%(option2)s/%%s".format(
                                 eq=self.delimiters[0]))
        self.assertEqual(cf.get("section", "ok"), "xxx/%s")
        if self.interpolation == configparser._UNSET:
            self.assertEqual(cf.get("section", "not_ok"), "xxx/xxx/%s")
        elif isinstance(self.interpolation, configparser.LegacyInterpolation):
            with self.assertRaises(TypeError):
                cf.get("section", "not_ok")

    def test_set_malformatted_interpolation(self):
        cf = self.fromstring("[sect]\n"
                             "option1{eq}foo\n".format(eq=self.delimiters[0]))

        self.assertEqual(cf.get('sect', "option1"), "foo")

        self.assertRaises(ValueError, cf.set, "sect", "option1", "%foo")
        self.assertRaises(ValueError, cf.set, "sect", "option1", "foo%")
        self.assertRaises(ValueError, cf.set, "sect", "option1", "f%oo")

        self.assertEqual(cf.get('sect', "option1"), "foo")

        # bug #5741: double percents are *not* malformed
        cf.set("sect", "option2", "foo%%bar")
        self.assertEqual(cf.get("sect", "option2"), "foo%bar")

    def test_set_nonstring_types(self):
        cf = self.fromstring("[sect]\n"
                             "option1{eq}foo\n".format(eq=self.delimiters[0]))
        # Check that we get a TypeError when setting non-string values
        # in an existing section:
        self.assertRaises(TypeError, cf.set, "sect", "option1", 1)
        self.assertRaises(TypeError, cf.set, "sect", "option1", 1.0)
        self.assertRaises(TypeError, cf.set, "sect", "option1", object())
        self.assertRaises(TypeError, cf.set, "sect", "option2", 1)
        self.assertRaises(TypeError, cf.set, "sect", "option2", 1.0)
        self.assertRaises(TypeError, cf.set, "sect", "option2", object())
        self.assertRaises(TypeError, cf.set, "sect", 123, "invalid opt name!")
        self.assertRaises(TypeError, cf.add_section, 123)

    def test_add_section_default(self):
        cf = self.newconfig()
        self.assertRaises(ValueError, cf.add_section, self.default_section)

    def test_defaults_keyword(self):
        """bpo-23835 fix for ConfigParser"""
        cf = self.newconfig(defaults={1: 2.4})
        self.assertEqual(cf[self.default_section]['1'], '2.4')
        self.assertAlmostEqual(cf[self.default_section].getfloat('1'), 2.4)
        cf = self.newconfig(defaults={"A": 5.2})
        self.assertEqual(cf[self.default_section]['a'], '5.2')
        self.assertAlmostEqual(cf[self.default_section].getfloat('a'), 5.2)


class ConfigParserTestCaseNoInterpolation(BasicTestCase, unittest.TestCase):
    config_class = configparser.ConfigParser
    interpolation = None
    ini = textwrap.dedent("""
        [numbers]
        one = 1
        two = %(one)s * 2
        three = ${common:one} * 3

        [hexen]
        sixteen = ${numbers:two} * 8
    """).strip()

    def assertMatchesIni(self, cf):
        self.assertEqual(cf['numbers']['one'], '1')
        self.assertEqual(cf['numbers']['two'], '%(one)s * 2')
        self.assertEqual(cf['numbers']['three'], '${common:one} * 3')
        self.assertEqual(cf['hexen']['sixteen'], '${numbers:two} * 8')

    def test_no_interpolation(self):
        cf = self.fromstring(self.ini)
        self.assertMatchesIni(cf)

    def test_empty_case(self):
        cf = self.newconfig()
        self.assertIsNone(cf.read_string(""))

    def test_none_as_default_interpolation(self):
        class CustomConfigParser(configparser.ConfigParser):
            _DEFAULT_INTERPOLATION = None

        cf = CustomConfigParser()
        cf.read_string(self.ini)
        self.assertMatchesIni(cf)


class ConfigParserTestCaseLegacyInterpolation(ConfigParserTestCase):
    config_class = configparser.ConfigParser
    interpolation = configparser.LegacyInterpolation()

    def test_set_malformatted_interpolation(self):
        cf = self.fromstring("[sect]\n"
                             "option1{eq}foo\n".format(eq=self.delimiters[0]))

        self.assertEqual(cf.get('sect', "option1"), "foo")

        cf.set("sect", "option1", "%foo")
        self.assertEqual(cf.get('sect', "option1"), "%foo")
        cf.set("sect", "option1", "foo%")
        self.assertEqual(cf.get('sect', "option1"), "foo%")
        cf.set("sect", "option1", "f%oo")
        self.assertEqual(cf.get('sect', "option1"), "f%oo")

        # bug #5741: double percents are *not* malformed
        cf.set("sect", "option2", "foo%%bar")
        self.assertEqual(cf.get("sect", "option2"), "foo%%bar")


class ConfigParserTestCaseNonStandardDelimiters(ConfigParserTestCase):
    delimiters = (':=', '$')
    comment_prefixes = ('//', '"')
    inline_comment_prefixes = ('//', '"')


class ConfigParserTestCaseNonStandardDefaultSection(ConfigParserTestCase):
    default_section = 'general'


class MultilineValuesTestCase(BasicTestCase, unittest.TestCase):
    config_class = configparser.ConfigParser
    wonderful_spam = ("I'm having spam spam spam spam "
                      "spam spam spam beaked beans spam "
                      "spam spam and spam!").replace(' ', '\t\n')

    def setUp(self):
        cf = self.newconfig()
        for i in range(100):
            s = 'section{}'.format(i)
            cf.add_section(s)
            for j in range(10):
                cf.set(s, 'lovely_spam{}'.format(j), self.wonderful_spam)
        with open(support.TESTFN, 'w') as f:
            cf.write(f)

    def tearDown(self):
        os.unlink(support.TESTFN)

    def test_dominating_multiline_values(self):
        # We're reading from file because this is where the code changed
        # during performance updates in Python 3.2
        cf_from_file = self.newconfig()
        with open(support.TESTFN) as f:
            cf_from_file.read_file(f)
        self.assertEqual(cf_from_file.get('section8', 'lovely_spam4'),
                         self.wonderful_spam.replace('\t\n', '\n'))


class RawConfigParserTestCase(BasicTestCase, unittest.TestCase):
    config_class = configparser.RawConfigParser

    def test_interpolation(self):
        cf = self.get_interpolation_config()
        eq = self.assertEqual
        eq(cf.get("Foo", "bar"),
           "something %(with1)s interpolation (1 step)")
        eq(cf.get("Foo", "bar9"),
           "something %(with9)s lots of interpolation (9 steps)")
        eq(cf.get("Foo", "bar10"),
           "something %(with10)s lots of interpolation (10 steps)")
        eq(cf.get("Foo", "bar11"),
           "something %(with11)s lots of interpolation (11 steps)")

    def test_items(self):
        self.check_items_config([('default', '<default>'),
                                 ('getdefault', '|%(default)s|'),
                                 ('key', '|%(name)s|'),
                                 ('name', '%(value)s'),
                                 ('value', 'value')])

    def test_set_nonstring_types(self):
        cf = self.newconfig()
        cf.add_section('non-string')
        cf.set('non-string', 'int', 1)
        cf.set('non-string', 'list', [0, 1, 1, 2, 3, 5, 8, 13])
        cf.set('non-string', 'dict', {'pi': 3.14159})
        self.assertEqual(cf.get('non-string', 'int'), 1)
        self.assertEqual(cf.get('non-string', 'list'),
                         [0, 1, 1, 2, 3, 5, 8, 13])
        self.assertEqual(cf.get('non-string', 'dict'), {'pi': 3.14159})
        cf.add_section(123)
        cf.set(123, 'this is sick', True)
        self.assertEqual(cf.get(123, 'this is sick'), True)
        if cf._dict is configparser._default_dict:
            # would not work for SortedDict; only checking for the most common
            # default dictionary (OrderedDict)
            cf.optionxform = lambda x: x
            cf.set('non-string', 1, 1)
            self.assertEqual(cf.get('non-string', 1), 1)

    def test_defaults_keyword(self):
        """bpo-23835 legacy behavior for RawConfigParser"""
        with self.assertRaises(AttributeError) as ctx:
            self.newconfig(defaults={1: 2.4})
        err = ctx.exception
        self.assertEqual(str(err), "'int' object has no attribute 'lower'")
        cf = self.newconfig(defaults={"A": 5.2})
        self.assertAlmostEqual(cf[self.default_section]['a'], 5.2)


class RawConfigParserTestCaseNonStandardDelimiters(RawConfigParserTestCase):
    delimiters = (':=', '$')
    comment_prefixes = ('//', '"')
    inline_comment_prefixes = ('//', '"')


class RawConfigParserTestSambaConf(CfgParserTestCaseClass, unittest.TestCase):
    config_class = configparser.RawConfigParser
    comment_prefixes = ('#', ';', '----')
    inline_comment_prefixes = ('//',)
    empty_lines_in_values = False

    def test_reading(self):
        smbconf = support.findfile("cfgparser.2")
        # check when we pass a mix of readable and non-readable files:
        cf = self.newconfig()
        parsed_files = cf.read([smbconf, "nonexistent-file"], encoding='utf-8')
        self.assertEqual(parsed_files, [smbconf])
        sections = ['global', 'homes', 'printers',
                    'print$', 'pdf-generator', 'tmp', 'Agustin']
        self.assertEqual(cf.sections(), sections)
        self.assertEqual(cf.get("global", "workgroup"), "MDKGROUP")
        self.assertEqual(cf.getint("global", "max log size"), 50)
        self.assertEqual(cf.get("global", "hosts allow"), "127.")
        self.assertEqual(cf.get("tmp", "echo command"), "cat %s; rm %s")

class ConfigParserTestCaseExtendedInterpolation(BasicTestCase, unittest.TestCase):
    config_class = configparser.ConfigParser
    interpolation = configparser.ExtendedInterpolation()
    default_section = 'common'
    strict = True

    def fromstring(self, string, defaults=None, optionxform=None):
        cf = self.newconfig(defaults)
        if optionxform:
            cf.optionxform = optionxform
        cf.read_string(string)
        return cf

    def test_extended_interpolation(self):
        cf = self.fromstring(textwrap.dedent("""
            [common]
            favourite Beatle = Paul
            favourite color = green

            [tom]
            favourite band = ${favourite color} day
            favourite pope = John ${favourite Beatle} II
            sequel = ${favourite pope}I

            [ambv]
            favourite Beatle = George
            son of Edward VII = ${favourite Beatle} V
            son of George V = ${son of Edward VII}I

            [stanley]
            favourite Beatle = ${ambv:favourite Beatle}
            favourite pope = ${tom:favourite pope}
            favourite color = black
            favourite state of mind = paranoid
            favourite movie = soylent ${common:favourite color}
            favourite song = ${favourite color} sabbath - ${favourite state of mind}
        """).strip())

        eq = self.assertEqual
        eq(cf['common']['favourite Beatle'], 'Paul')
        eq(cf['common']['favourite color'], 'green')
        eq(cf['tom']['favourite Beatle'], 'Paul')
        eq(cf['tom']['favourite color'], 'green')
        eq(cf['tom']['favourite band'], 'green day')
        eq(cf['tom']['favourite pope'], 'John Paul II')
        eq(cf['tom']['sequel'], 'John Paul III')
        eq(cf['ambv']['favourite Beatle'], 'George')
        eq(cf['ambv']['favourite color'], 'green')
        eq(cf['ambv']['son of Edward VII'], 'George V')
        eq(cf['ambv']['son of George V'], 'George VI')
        eq(cf['stanley']['favourite Beatle'], 'George')
        eq(cf['stanley']['favourite color'], 'black')
        eq(cf['stanley']['favourite state of mind'], 'paranoid')
        eq(cf['stanley']['favourite movie'], 'soylent green')
        eq(cf['stanley']['favourite pope'], 'John Paul II')
        eq(cf['stanley']['favourite song'],
           'black sabbath - paranoid')

    def test_endless_loop(self):
        cf = self.fromstring(textwrap.dedent("""
            [one for you]
            ping = ${one for me:pong}

            [one for me]
            pong = ${one for you:ping}

            [selfish]
            me = ${me}
        """).strip())

        with self.assertRaises(configparser.InterpolationDepthError):
            cf['one for you']['ping']
        with self.assertRaises(configparser.InterpolationDepthError):
            cf['selfish']['me']

    def test_strange_options(self):
        cf = self.fromstring("""
            [dollars]
            $var = $$value
            $var2 = ${$var}
            ${sick} = cannot interpolate me

            [interpolated]
            $other = ${dollars:$var}
            $trying = ${dollars:${sick}}
        """)

        self.assertEqual(cf['dollars']['$var'], '$value')
        self.assertEqual(cf['interpolated']['$other'], '$value')
        self.assertEqual(cf['dollars']['${sick}'], 'cannot interpolate me')
        exception_class = configparser.InterpolationMissingOptionError
        with self.assertRaises(exception_class) as cm:
            cf['interpolated']['$trying']
        self.assertEqual(cm.exception.reference, 'dollars:${sick')
        self.assertEqual(cm.exception.args[2], '${dollars:${sick}}') #rawval

    def test_case_sensitivity_basic(self):
        ini = textwrap.dedent("""
            [common]
            optionlower = value
            OptionUpper = Value

            [Common]
            optionlower = a better ${common:optionlower}
            OptionUpper = A Better ${common:OptionUpper}

            [random]
            foolower = ${common:optionlower} redefined
            FooUpper = ${Common:OptionUpper} Redefined
        """).strip()

        cf = self.fromstring(ini)
        eq = self.assertEqual
        eq(cf['common']['optionlower'], 'value')
        eq(cf['common']['OptionUpper'], 'Value')
        eq(cf['Common']['optionlower'], 'a better value')
        eq(cf['Common']['OptionUpper'], 'A Better Value')
        eq(cf['random']['foolower'], 'value redefined')
        eq(cf['random']['FooUpper'], 'A Better Value Redefined')

    def test_case_sensitivity_conflicts(self):
        ini = textwrap.dedent("""
            [common]
            option = value
            Option = Value

            [Common]
            option = a better ${common:option}
            Option = A Better ${common:Option}

            [random]
            foo = ${common:option} redefined
            Foo = ${Common:Option} Redefined
        """).strip()
        with self.assertRaises(configparser.DuplicateOptionError):
            cf = self.fromstring(ini)

        # raw options
        cf = self.fromstring(ini, optionxform=lambda opt: opt)
        eq = self.assertEqual
        eq(cf['common']['option'], 'value')
        eq(cf['common']['Option'], 'Value')
        eq(cf['Common']['option'], 'a better value')
        eq(cf['Common']['Option'], 'A Better Value')
        eq(cf['random']['foo'], 'value redefined')
        eq(cf['random']['Foo'], 'A Better Value Redefined')

    def test_other_errors(self):
        cf = self.fromstring("""
            [interpolation fail]
            case1 = ${where's the brace
            case2 = ${does_not_exist}
            case3 = ${wrong_section:wrong_value}
            case4 = ${i:like:colon:characters}
            case5 = $100 for Fail No 5!
        """)

        with self.assertRaises(configparser.InterpolationSyntaxError):
            cf['interpolation fail']['case1']
        with self.assertRaises(configparser.InterpolationMissingOptionError):
            cf['interpolation fail']['case2']
        with self.assertRaises(configparser.InterpolationMissingOptionError):
            cf['interpolation fail']['case3']
        with self.assertRaises(configparser.InterpolationSyntaxError):
            cf['interpolation fail']['case4']
        with self.assertRaises(configparser.InterpolationSyntaxError):
            cf['interpolation fail']['case5']
        with self.assertRaises(ValueError):
            cf['interpolation fail']['case6'] = "BLACK $ABBATH"


class ConfigParserTestCaseNoValue(ConfigParserTestCase):
    allow_no_value = True


class ConfigParserTestCaseTrickyFile(CfgParserTestCaseClass, unittest.TestCase):
    config_class = configparser.ConfigParser
    delimiters = {'='}
    comment_prefixes = {'#'}
    allow_no_value = True

    def test_cfgparser_dot_3(self):
        tricky = support.findfile("cfgparser.3")
        cf = self.newconfig()
        self.assertEqual(len(cf.read(tricky, encoding='utf-8')), 1)
        self.assertEqual(cf.sections(), ['strange',
                                         'corruption',
                                         'yeah, sections can be '
                                         'indented as well',
                                         'another one!',
                                         'no values here',
                                         'tricky interpolation',
                                         'more interpolation'])
        self.assertEqual(cf.getint(self.default_section, 'go',
                                   vars={'interpolate': '-1'}), -1)
        with self.assertRaises(ValueError):
            # no interpolation will happen
            cf.getint(self.default_section, 'go', raw=True,
                      vars={'interpolate': '-1'})
        self.assertEqual(len(cf.get('strange', 'other').split('\n')), 4)
        self.assertEqual(len(cf.get('corruption', 'value').split('\n')), 10)
        longname = 'yeah, sections can be indented as well'
        self.assertFalse(cf.getboolean(longname, 'are they subsections'))
        self.assertEqual(cf.get(longname, 'lets use some Unicode'), '片仮名')
        self.assertEqual(len(cf.items('another one!')), 5) # 4 in section and
                                                           # `go` from DEFAULT
        with self.assertRaises(configparser.InterpolationMissingOptionError):
            cf.items('no values here')
        self.assertEqual(cf.get('tricky interpolation', 'lets'), 'do this')
        self.assertEqual(cf.get('tricky interpolation', 'lets'),
                         cf.get('tricky interpolation', 'go'))
        self.assertEqual(cf.get('more interpolation', 'lets'), 'go shopping')

    def test_unicode_failure(self):
        tricky = support.findfile("cfgparser.3")
        cf = self.newconfig()
        with self.assertRaises(UnicodeDecodeError):
            cf.read(tricky, encoding='ascii')


class Issue7005TestCase(unittest.TestCase):
    """Test output when None is set() as a value and allow_no_value == False.

    http://bugs.python.org/issue7005

    """

    expected_output = "[section]\noption = None\n\n"

    def prepare(self, config_class):
        # This is the default, but that's the point.
        cp = config_class(allow_no_value=False)
        cp.add_section("section")
        cp.set("section", "option", None)
        sio = io.StringIO()
        cp.write(sio)
        return sio.getvalue()

    def test_none_as_value_stringified(self):
        cp = configparser.ConfigParser(allow_no_value=False)
        cp.add_section("section")
        with self.assertRaises(TypeError):
            cp.set("section", "option", None)

    def test_none_as_value_stringified_raw(self):
        output = self.prepare(configparser.RawConfigParser)
        self.assertEqual(output, self.expected_output)


class SortedTestCase(RawConfigParserTestCase):
    dict_type = SortedDict

    def test_sorted(self):
        cf = self.fromstring("[b]\n"
                             "o4=1\n"
                             "o3=2\n"
                             "o2=3\n"
                             "o1=4\n"
                             "[a]\n"
                             "k=v\n")
        output = io.StringIO()
        cf.write(output)
        self.assertEqual(output.getvalue(),
                         "[a]\n"
                         "k = v\n\n"
                         "[b]\n"
                         "o1 = 4\n"
                         "o2 = 3\n"
                         "o3 = 2\n"
                         "o4 = 1\n\n")


class CompatibleTestCase(CfgParserTestCaseClass, unittest.TestCase):
    config_class = configparser.RawConfigParser
    comment_prefixes = '#;'
    inline_comment_prefixes = ';'

    def test_comment_handling(self):
        config_string = textwrap.dedent("""\
        [Commented Bar]
        baz=qwe ; a comment
        foo: bar # not a comment!
        # but this is a comment
        ; another comment
        quirk: this;is not a comment
        ; a space must precede an inline comment
        """)
        cf = self.fromstring(config_string)
        self.assertEqual(cf.get('Commented Bar', 'foo'),
                         'bar # not a comment!')
        self.assertEqual(cf.get('Commented Bar', 'baz'), 'qwe')
        self.assertEqual(cf.get('Commented Bar', 'quirk'),
                         'this;is not a comment')

class CopyTestCase(BasicTestCase, unittest.TestCase):
    config_class = configparser.ConfigParser

    def fromstring(self, string, defaults=None):
        cf = self.newconfig(defaults)
        cf.read_string(string)
        cf_copy = self.newconfig()
        cf_copy.read_dict(cf)
        # we have to clean up option duplicates that appeared because of
        # the magic DEFAULTSECT behaviour.
        for section in cf_copy.values():
            if section.name == self.default_section:
                continue
            for default, value in cf[self.default_section].items():
                if section[default] == value:
                    del section[default]
        return cf_copy


class FakeFile:
    def __init__(self):
        file_path = support.findfile("cfgparser.1")
        with open(file_path) as f:
            self.lines = f.readlines()
            self.lines.reverse()

    def readline(self):
        if len(self.lines):
            return self.lines.pop()
        return ''


def readline_generator(f):
    """As advised in Doc/library/configparser.rst."""
    line = f.readline()
    while line:
        yield line
        line = f.readline()


class ReadFileTestCase(unittest.TestCase):
    def test_file(self):
        file_paths = [support.findfile("cfgparser.1")]
        try:
            file_paths.append(file_paths[0].encode('utf8'))
        except UnicodeEncodeError:
            pass   # unfortunately we can't test bytes on this path
        for file_path in file_paths:
            parser = configparser.ConfigParser()
            with open(file_path) as f:
                parser.read_file(f)
            self.assertIn("Foo Bar", parser)
            self.assertIn("foo", parser["Foo Bar"])
            self.assertEqual(parser["Foo Bar"]["foo"], "newbar")

    def test_iterable(self):
        lines = textwrap.dedent("""
        [Foo Bar]
        foo=newbar""").strip().split('\n')
        parser = configparser.ConfigParser()
        parser.read_file(lines)
        self.assertIn("Foo Bar", parser)
        self.assertIn("foo", parser["Foo Bar"])
        self.assertEqual(parser["Foo Bar"]["foo"], "newbar")

    def test_readline_generator(self):
        """Issue #11670."""
        parser = configparser.ConfigParser()
        with self.assertRaises(TypeError):
            parser.read_file(FakeFile())
        parser.read_file(readline_generator(FakeFile()))
        self.assertIn("Foo Bar", parser)
        self.assertIn("foo", parser["Foo Bar"])
        self.assertEqual(parser["Foo Bar"]["foo"], "newbar")

    def test_source_as_bytes(self):
        """Issue #18260."""
        lines = textwrap.dedent("""
        [badbad]
        [badbad]""").strip().split('\n')
        parser = configparser.ConfigParser()
        with self.assertRaises(configparser.DuplicateSectionError) as dse:
            parser.read_file(lines, source=b"badbad")
        self.assertEqual(
            str(dse.exception),
            "While reading from b'badbad' [line  2]: section 'badbad' "
            "already exists"
        )
        lines = textwrap.dedent("""
        [badbad]
        bad = bad
        bad = bad""").strip().split('\n')
        parser = configparser.ConfigParser()
        with self.assertRaises(configparser.DuplicateOptionError) as dse:
            parser.read_file(lines, source=b"badbad")
        self.assertEqual(
            str(dse.exception),
            "While reading from b'badbad' [line  3]: option 'bad' in section "
            "'badbad' already exists"
        )
        lines = textwrap.dedent("""
        [badbad]
        = bad""").strip().split('\n')
        parser = configparser.ConfigParser()
        with self.assertRaises(configparser.ParsingError) as dse:
            parser.read_file(lines, source=b"badbad")
        self.assertEqual(
            str(dse.exception),
            "Source contains parsing errors: b'badbad'\n\t[line  2]: '= bad'"
        )
        lines = textwrap.dedent("""
        [badbad
        bad = bad""").strip().split('\n')
        parser = configparser.ConfigParser()
        with self.assertRaises(configparser.MissingSectionHeaderError) as dse:
            parser.read_file(lines, source=b"badbad")
        self.assertEqual(
            str(dse.exception),
            "File contains no section headers.\nfile: b'badbad', line: 1\n"
            "'[badbad'"
        )


class CoverageOneHundredTestCase(unittest.TestCase):
    """Covers edge cases in the codebase."""

    def test_duplicate_option_error(self):
        error = configparser.DuplicateOptionError('section', 'option')
        self.assertEqual(error.section, 'section')
        self.assertEqual(error.option, 'option')
        self.assertEqual(error.source, None)
        self.assertEqual(error.lineno, None)
        self.assertEqual(error.args, ('section', 'option', None, None))
        self.assertEqual(str(error), "Option 'option' in section 'section' "
                                     "already exists")

    def test_interpolation_depth_error(self):
        error = configparser.InterpolationDepthError('option', 'section',
                                                     'rawval')
        self.assertEqual(error.args, ('option', 'section', 'rawval'))
        self.assertEqual(error.option, 'option')
        self.assertEqual(error.section, 'section')

    def test_parsing_error(self):
        with self.assertRaises(ValueError) as cm:
            configparser.ParsingError()
        self.assertEqual(str(cm.exception), "Required argument `source' not "
                                            "given.")
        with self.assertRaises(ValueError) as cm:
            configparser.ParsingError(source='source', filename='filename')
        self.assertEqual(str(cm.exception), "Cannot specify both `filename' "
                                            "and `source'. Use `source'.")
        error = configparser.ParsingError(filename='source')
        self.assertEqual(error.source, 'source')
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always", DeprecationWarning)
            self.assertEqual(error.filename, 'source')
            error.filename = 'filename'
            self.assertEqual(error.source, 'filename')
        for warning in w:
            self.assertTrue(warning.category is DeprecationWarning)

    def test_interpolation_validation(self):
        parser = configparser.ConfigParser()
        parser.read_string("""
            [section]
            invalid_percent = %
            invalid_reference = %(()
            invalid_variable = %(does_not_exist)s
        """)
        with self.assertRaises(configparser.InterpolationSyntaxError) as cm:
            parser['section']['invalid_percent']
        self.assertEqual(str(cm.exception), "'%' must be followed by '%' or "
                                            "'(', found: '%'")
        with self.assertRaises(configparser.InterpolationSyntaxError) as cm:
            parser['section']['invalid_reference']
        self.assertEqual(str(cm.exception), "bad interpolation variable "
                                            "reference '%(()'")

    def test_readfp_deprecation(self):
        sio = io.StringIO("""
        [section]
        option = value
        """)
        parser = configparser.ConfigParser()
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always", DeprecationWarning)
            parser.readfp(sio, filename='StringIO')
        for warning in w:
            self.assertTrue(warning.category is DeprecationWarning)
        self.assertEqual(len(parser), 2)
        self.assertEqual(parser['section']['option'], 'value')

    def test_safeconfigparser_deprecation(self):
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always", DeprecationWarning)
            parser = configparser.SafeConfigParser()
        for warning in w:
            self.assertTrue(warning.category is DeprecationWarning)

    def test_sectionproxy_repr(self):
        parser = configparser.ConfigParser()
        parser.read_string("""
            [section]
            key = value
        """)
        self.assertEqual(repr(parser['section']), '<Section: section>')

    def test_inconsistent_converters_state(self):
        parser = configparser.ConfigParser()
        import decimal
        parser.converters['decimal'] = decimal.Decimal
        parser.read_string("""
            [s1]
            one = 1
            [s2]
            two = 2
        """)
        self.assertIn('decimal', parser.converters)
        self.assertEqual(parser.getdecimal('s1', 'one'), 1)
        self.assertEqual(parser.getdecimal('s2', 'two'), 2)
        self.assertEqual(parser['s1'].getdecimal('one'), 1)
        self.assertEqual(parser['s2'].getdecimal('two'), 2)
        del parser.getdecimal
        with self.assertRaises(AttributeError):
            parser.getdecimal('s1', 'one')
        self.assertIn('decimal', parser.converters)
        del parser.converters['decimal']
        self.assertNotIn('decimal', parser.converters)
        with self.assertRaises(AttributeError):
            parser.getdecimal('s1', 'one')
        with self.assertRaises(AttributeError):
            parser['s1'].getdecimal('one')
        with self.assertRaises(AttributeError):
            parser['s2'].getdecimal('two')


class ExceptionPicklingTestCase(unittest.TestCase):
    """Tests for issue #13760: ConfigParser exceptions are not picklable."""

    def test_error(self):
        import pickle
        e1 = configparser.Error('value')
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(repr(e1), repr(e2))

    def test_nosectionerror(self):
        import pickle
        e1 = configparser.NoSectionError('section')
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.section, e2.section)
            self.assertEqual(repr(e1), repr(e2))

    def test_nooptionerror(self):
        import pickle
        e1 = configparser.NoOptionError('option', 'section')
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.section, e2.section)
            self.assertEqual(e1.option, e2.option)
            self.assertEqual(repr(e1), repr(e2))

    def test_duplicatesectionerror(self):
        import pickle
        e1 = configparser.DuplicateSectionError('section', 'source', 123)
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.section, e2.section)
            self.assertEqual(e1.source, e2.source)
            self.assertEqual(e1.lineno, e2.lineno)
            self.assertEqual(repr(e1), repr(e2))

    def test_duplicateoptionerror(self):
        import pickle
        e1 = configparser.DuplicateOptionError('section', 'option', 'source',
            123)
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.section, e2.section)
            self.assertEqual(e1.option, e2.option)
            self.assertEqual(e1.source, e2.source)
            self.assertEqual(e1.lineno, e2.lineno)
            self.assertEqual(repr(e1), repr(e2))

    def test_interpolationerror(self):
        import pickle
        e1 = configparser.InterpolationError('option', 'section', 'msg')
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.section, e2.section)
            self.assertEqual(e1.option, e2.option)
            self.assertEqual(repr(e1), repr(e2))

    def test_interpolationmissingoptionerror(self):
        import pickle
        e1 = configparser.InterpolationMissingOptionError('option', 'section',
            'rawval', 'reference')
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.section, e2.section)
            self.assertEqual(e1.option, e2.option)
            self.assertEqual(e1.reference, e2.reference)
            self.assertEqual(repr(e1), repr(e2))

    def test_interpolationsyntaxerror(self):
        import pickle
        e1 = configparser.InterpolationSyntaxError('option', 'section', 'msg')
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.section, e2.section)
            self.assertEqual(e1.option, e2.option)
            self.assertEqual(repr(e1), repr(e2))

    def test_interpolationdeptherror(self):
        import pickle
        e1 = configparser.InterpolationDepthError('option', 'section',
            'rawval')
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.section, e2.section)
            self.assertEqual(e1.option, e2.option)
            self.assertEqual(repr(e1), repr(e2))

    def test_parsingerror(self):
        import pickle
        e1 = configparser.ParsingError('source')
        e1.append(1, 'line1')
        e1.append(2, 'line2')
        e1.append(3, 'line3')
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.source, e2.source)
            self.assertEqual(e1.errors, e2.errors)
            self.assertEqual(repr(e1), repr(e2))
        e1 = configparser.ParsingError(filename='filename')
        e1.append(1, 'line1')
        e1.append(2, 'line2')
        e1.append(3, 'line3')
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.source, e2.source)
            self.assertEqual(e1.errors, e2.errors)
            self.assertEqual(repr(e1), repr(e2))

    def test_missingsectionheadererror(self):
        import pickle
        e1 = configparser.MissingSectionHeaderError('filename', 123, 'line')
        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
            pickled = pickle.dumps(e1, proto)
            e2 = pickle.loads(pickled)
            self.assertEqual(e1.message, e2.message)
            self.assertEqual(e1.args, e2.args)
            self.assertEqual(e1.line, e2.line)
            self.assertEqual(e1.source, e2.source)
            self.assertEqual(e1.lineno, e2.lineno)
            self.assertEqual(repr(e1), repr(e2))


class InlineCommentStrippingTestCase(unittest.TestCase):
    """Tests for issue #14590: ConfigParser doesn't strip inline comment when
    delimiter occurs earlier without preceding space.."""

    def test_stripping(self):
        cfg = configparser.ConfigParser(inline_comment_prefixes=(';', '#',
                '//'))
        cfg.read_string("""
        [section]
        k1 = v1;still v1
        k2 = v2 ;a comment
        k3 = v3 ; also a comment
        k4 = v4;still v4 ;a comment
        k5 = v5;still v5 ; also a comment
        k6 = v6;still v6; and still v6 ;a comment
        k7 = v7;still v7; and still v7 ; also a comment

        [multiprefix]
        k1 = v1;still v1 #a comment ; yeah, pretty much
        k2 = v2 // this already is a comment ; continued
        k3 = v3;#//still v3# and still v3 ; a comment
        """)
        s = cfg['section']
        self.assertEqual(s['k1'], 'v1;still v1')
        self.assertEqual(s['k2'], 'v2')
        self.assertEqual(s['k3'], 'v3')
        self.assertEqual(s['k4'], 'v4;still v4')
        self.assertEqual(s['k5'], 'v5;still v5')
        self.assertEqual(s['k6'], 'v6;still v6; and still v6')
        self.assertEqual(s['k7'], 'v7;still v7; and still v7')
        s = cfg['multiprefix']
        self.assertEqual(s['k1'], 'v1;still v1')
        self.assertEqual(s['k2'], 'v2')
        self.assertEqual(s['k3'], 'v3;#//still v3# and still v3')


class ExceptionContextTestCase(unittest.TestCase):
    """ Test that implementation details doesn't leak
    through raising exceptions. """

    def test_get_basic_interpolation(self):
        parser = configparser.ConfigParser()
        parser.read_string("""
        [Paths]
        home_dir: /Users
        my_dir: %(home_dir1)s/lumberjack
        my_pictures: %(my_dir)s/Pictures
        """)
        cm = self.assertRaises(configparser.InterpolationMissingOptionError)
        with cm:
            parser.get('Paths', 'my_dir')
        self.assertIs(cm.exception.__suppress_context__, True)

    def test_get_extended_interpolation(self):
        parser = configparser.ConfigParser(
          interpolation=configparser.ExtendedInterpolation())
        parser.read_string("""
        [Paths]
        home_dir: /Users
        my_dir: ${home_dir1}/lumberjack
        my_pictures: ${my_dir}/Pictures
        """)
        cm = self.assertRaises(configparser.InterpolationMissingOptionError)
        with cm:
            parser.get('Paths', 'my_dir')
        self.assertIs(cm.exception.__suppress_context__, True)

    def test_missing_options(self):
        parser = configparser.ConfigParser()
        parser.read_string("""
        [Paths]
        home_dir: /Users
        """)
        with self.assertRaises(configparser.NoSectionError) as cm:
            parser.options('test')
        self.assertIs(cm.exception.__suppress_context__, True)

    def test_missing_section(self):
        config = configparser.ConfigParser()
        with self.assertRaises(configparser.NoSectionError) as cm:
            config.set('Section1', 'an_int', '15')
        self.assertIs(cm.exception.__suppress_context__, True)

    def test_remove_option(self):
        config = configparser.ConfigParser()
        with self.assertRaises(configparser.NoSectionError) as cm:
            config.remove_option('Section1', 'an_int')
        self.assertIs(cm.exception.__suppress_context__, True)


class ConvertersTestCase(BasicTestCase, unittest.TestCase):
    """Introduced in 3.5, issue #18159."""

    config_class = configparser.ConfigParser

    def newconfig(self, defaults=None):
        instance = super().newconfig(defaults=defaults)
        instance.converters['list'] = lambda v: [e.strip() for e in v.split()
                                                 if e.strip()]
        return instance

    def test_converters(self):
        cfg = self.newconfig()
        self.assertIn('boolean', cfg.converters)
        self.assertIn('list', cfg.converters)
        self.assertIsNone(cfg.converters['int'])
        self.assertIsNone(cfg.converters['float'])
        self.assertIsNone(cfg.converters['boolean'])
        self.assertIsNotNone(cfg.converters['list'])
        self.assertEqual(len(cfg.converters), 4)
        with self.assertRaises(ValueError):
            cfg.converters[''] = lambda v: v
        with self.assertRaises(ValueError):
            cfg.converters[None] = lambda v: v
        cfg.read_string("""
        [s]
        str = string
        int = 1
        float = 0.5
        list = a b c d e f g
        bool = yes
        """)
        s = cfg['s']
        self.assertEqual(s['str'], 'string')
        self.assertEqual(s['int'], '1')
        self.assertEqual(s['float'], '0.5')
        self.assertEqual(s['list'], 'a b c d e f g')
        self.assertEqual(s['bool'], 'yes')
        self.assertEqual(cfg.get('s', 'str'), 'string')
        self.assertEqual(cfg.get('s', 'int'), '1')
        self.assertEqual(cfg.get('s', 'float'), '0.5')
        self.assertEqual(cfg.get('s', 'list'), 'a b c d e f g')
        self.assertEqual(cfg.get('s', 'bool'), 'yes')
        self.assertEqual(cfg.get('s', 'str'), 'string')
        self.assertEqual(cfg.getint('s', 'int'), 1)
        self.assertEqual(cfg.getfloat('s', 'float'), 0.5)
        self.assertEqual(cfg.getlist('s', 'list'), ['a', 'b', 'c', 'd',
                                                    'e', 'f', 'g'])
        self.assertEqual(cfg.getboolean('s', 'bool'), True)
        self.assertEqual(s.get('str'), 'string')
        self.assertEqual(s.getint('int'), 1)
        self.assertEqual(s.getfloat('float'), 0.5)
        self.assertEqual(s.getlist('list'), ['a', 'b', 'c', 'd',
                                             'e', 'f', 'g'])
        self.assertEqual(s.getboolean('bool'), True)
        with self.assertRaises(AttributeError):
            cfg.getdecimal('s', 'float')
        with self.assertRaises(AttributeError):
            s.getdecimal('float')
        import decimal
        cfg.converters['decimal'] = decimal.Decimal
        self.assertIn('decimal', cfg.converters)
        self.assertIsNotNone(cfg.converters['decimal'])
        self.assertEqual(len(cfg.converters), 5)
        dec0_5 = decimal.Decimal('0.5')
        self.assertEqual(cfg.getdecimal('s', 'float'), dec0_5)
        self.assertEqual(s.getdecimal('float'), dec0_5)
        del cfg.converters['decimal']
        self.assertNotIn('decimal', cfg.converters)
        self.assertEqual(len(cfg.converters), 4)
        with self.assertRaises(AttributeError):
            cfg.getdecimal('s', 'float')
        with self.assertRaises(AttributeError):
            s.getdecimal('float')
        with self.assertRaises(KeyError):
            del cfg.converters['decimal']
        with self.assertRaises(KeyError):
            del cfg.converters['']
        with self.assertRaises(KeyError):
            del cfg.converters[None]


class BlatantOverrideConvertersTestCase(unittest.TestCase):
    """What if somebody overrode a getboolean()? We want to make sure that in
    this case the automatic converters do not kick in."""

    config = """
        [one]
        one = false
        two = false
        three = long story short

        [two]
        one = false
        two = false
        three = four
    """

    def test_converters_at_init(self):
        cfg = configparser.ConfigParser(converters={'len': len})
        cfg.read_string(self.config)
        self._test_len(cfg)
        self.assertIsNotNone(cfg.converters['len'])

    def test_inheritance(self):
        class StrangeConfigParser(configparser.ConfigParser):
            gettysburg = 'a historic borough in south central Pennsylvania'

            def getboolean(self, section, option, *, raw=False, vars=None,
                        fallback=configparser._UNSET):
                if section == option:
                    return True
                return super().getboolean(section, option, raw=raw, vars=vars,
                                          fallback=fallback)
            def getlen(self, section, option, *, raw=False, vars=None,
                       fallback=configparser._UNSET):
                return self._get_conv(section, option, len, raw=raw, vars=vars,
                                      fallback=fallback)

        cfg = StrangeConfigParser()
        cfg.read_string(self.config)
        self._test_len(cfg)
        self.assertIsNone(cfg.converters['len'])
        self.assertTrue(cfg.getboolean('one', 'one'))
        self.assertTrue(cfg.getboolean('two', 'two'))
        self.assertFalse(cfg.getboolean('one', 'two'))
        self.assertFalse(cfg.getboolean('two', 'one'))
        cfg.converters['boolean'] = cfg._convert_to_boolean
        self.assertFalse(cfg.getboolean('one', 'one'))
        self.assertFalse(cfg.getboolean('two', 'two'))
        self.assertFalse(cfg.getboolean('one', 'two'))
        self.assertFalse(cfg.getboolean('two', 'one'))

    def _test_len(self, cfg):
        self.assertEqual(len(cfg.converters), 4)
        self.assertIn('boolean', cfg.converters)
        self.assertIn('len', cfg.converters)
        self.assertNotIn('tysburg', cfg.converters)
        self.assertIsNone(cfg.converters['int'])
        self.assertIsNone(cfg.converters['float'])
        self.assertIsNone(cfg.converters['boolean'])
        self.assertEqual(cfg.getlen('one', 'one'), 5)
        self.assertEqual(cfg.getlen('one', 'two'), 5)
        self.assertEqual(cfg.getlen('one', 'three'), 16)
        self.assertEqual(cfg.getlen('two', 'one'), 5)
        self.assertEqual(cfg.getlen('two', 'two'), 5)
        self.assertEqual(cfg.getlen('two', 'three'), 4)
        self.assertEqual(cfg.getlen('two', 'four', fallback=0), 0)
        with self.assertRaises(configparser.NoOptionError):
            cfg.getlen('two', 'four')
        self.assertEqual(cfg['one'].getlen('one'), 5)
        self.assertEqual(cfg['one'].getlen('two'), 5)
        self.assertEqual(cfg['one'].getlen('three'), 16)
        self.assertEqual(cfg['two'].getlen('one'), 5)
        self.assertEqual(cfg['two'].getlen('two'), 5)
        self.assertEqual(cfg['two'].getlen('three'), 4)
        self.assertEqual(cfg['two'].getlen('four', 0), 0)
        self.assertEqual(cfg['two'].getlen('four'), None)

    def test_instance_assignment(self):
        cfg = configparser.ConfigParser()
        cfg.getboolean = lambda section, option: True
        cfg.getlen = lambda section, option: len(cfg[section][option])
        cfg.read_string(self.config)
        self.assertEqual(len(cfg.converters), 3)
        self.assertIn('boolean', cfg.converters)
        self.assertNotIn('len', cfg.converters)
        self.assertIsNone(cfg.converters['int'])
        self.assertIsNone(cfg.converters['float'])
        self.assertIsNone(cfg.converters['boolean'])
        self.assertTrue(cfg.getboolean('one', 'one'))
        self.assertTrue(cfg.getboolean('two', 'two'))
        self.assertTrue(cfg.getboolean('one', 'two'))
        self.assertTrue(cfg.getboolean('two', 'one'))
        cfg.converters['boolean'] = cfg._convert_to_boolean
        self.assertFalse(cfg.getboolean('one', 'one'))
        self.assertFalse(cfg.getboolean('two', 'two'))
        self.assertFalse(cfg.getboolean('one', 'two'))
        self.assertFalse(cfg.getboolean('two', 'one'))
        self.assertEqual(cfg.getlen('one', 'one'), 5)
        self.assertEqual(cfg.getlen('one', 'two'), 5)
        self.assertEqual(cfg.getlen('one', 'three'), 16)
        self.assertEqual(cfg.getlen('two', 'one'), 5)
        self.assertEqual(cfg.getlen('two', 'two'), 5)
        self.assertEqual(cfg.getlen('two', 'three'), 4)
        # If a getter impl is assigned straight to the instance, it won't
        # be available on the section proxies.
        with self.assertRaises(AttributeError):
            self.assertEqual(cfg['one'].getlen('one'), 5)
        with self.assertRaises(AttributeError):
            self.assertEqual(cfg['two'].getlen('one'), 5)


class MiscTestCase(unittest.TestCase):
    def test__all__(self):
        blacklist = {"Error"}
        support.check__all__(self, configparser, blacklist=blacklist)


if __name__ == '__main__':
    unittest.main()

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

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


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jul 2024 8.44 AM
root / linksafe
0755
__pycache__
--
25 Jul 2024 8.42 AM
root / linksafe
0755
audiodata
--
25 Jul 2024 8.42 AM
root / linksafe
0755
capath
--
25 Jul 2024 8.42 AM
root / linksafe
0755
cjkencodings
--
25 Jul 2024 8.42 AM
root / linksafe
0755
data
--
25 Jul 2024 8.42 AM
root / linksafe
0755
decimaltestdata
--
25 Jul 2024 8.42 AM
root / linksafe
0755
dtracedata
--
25 Jul 2024 8.42 AM
root / linksafe
0755
eintrdata
--
25 Jul 2024 8.42 AM
root / linksafe
0755
encoded_modules
--
25 Jul 2024 8.42 AM
root / linksafe
0755
imghdrdata
--
25 Jul 2024 8.42 AM
root / linksafe
0755
libregrtest
--
25 Jul 2024 8.42 AM
root / linksafe
0755
sndhdrdata
--
25 Jul 2024 8.42 AM
root / linksafe
0755
subprocessdata
--
25 Jul 2024 8.42 AM
root / linksafe
0755
support
--
25 Jul 2024 8.42 AM
root / linksafe
0755
test_asyncio
--
25 Jul 2024 8.42 AM
root / linksafe
0755
test_email
--
25 Jul 2024 8.42 AM
root / linksafe
0755
test_import
--
25 Jul 2024 8.42 AM
root / linksafe
0755
test_importlib
--
25 Jul 2024 8.42 AM
root / linksafe
0755
test_json
--
25 Jul 2024 8.42 AM
root / linksafe
0755
test_tools
--
25 Jul 2024 8.42 AM
root / linksafe
0755
test_warnings
--
25 Jul 2024 8.42 AM
root / linksafe
0755
tracedmodules
--
25 Jul 2024 8.42 AM
root / linksafe
0755
xmltestdata
--
25 Jul 2024 8.42 AM
root / linksafe
0755
Sine-1000Hz-300ms.aif
60.25 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
__init__.py
0.046 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
__main__.py
0.04 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_test_multiprocessing.py
157.176 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
allsans.pem
4.919 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
ann_module.py
1.078 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
ann_module2.py
0.507 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
ann_module3.py
0.438 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
audiotests.py
12.462 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
autotest.py
0.204 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
bad_coding.py
0.023 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
bad_coding2.py
0.029 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
bad_getattr.py
0.06 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
bad_getattr2.py
0.075 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
bad_getattr3.py
0.136 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
badcert.pem
1.883 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
badkey.pem
2.111 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
badsyntax_3131.py
0.031 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
badsyntax_future10.py
0.093 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
badsyntax_future3.py
0.168 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
badsyntax_future4.py
0.149 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
badsyntax_future5.py
0.18 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
badsyntax_future6.py
0.157 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
badsyntax_future7.py
0.191 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
badsyntax_future8.py
0.119 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
badsyntax_future9.py
0.139 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
badsyntax_pep3120.py
0.014 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
bisect_cmd.py
4.862 KB
17 Apr 2024 5.36 PM
root / linksafe
0755
bytecode_helper.py
1.563 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
cfgparser.1
0.065 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
cfgparser.2
19.016 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
cfgparser.3
1.55 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
clinic.test
36.313 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
cmath_testcases.txt
141.047 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
coding20731.py
0.018 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
curses_tests.py
1.225 KB
17 Apr 2024 5.36 PM
root / linksafe
0755
dataclass_module_1.py
0.817 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dataclass_module_1_str.py
0.815 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dataclass_module_2.py
0.738 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dataclass_module_2_str.py
0.736 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dataclass_textanno.py
0.123 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
datetimetester.py
230.635 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
dis_module.py
0.074 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
doctest_aliases.py
0.234 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
double_const.py
1.184 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
empty.vbs
0.068 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
exception_hierarchy.txt
1.779 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
ffdh3072.pem
2.16 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
final_a.py
0.401 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
final_b.py
0.401 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
floating_points.txt
15.92 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
fork_wait.py
2.53 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
formatfloat_testcases.txt
7.451 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
future_test1.py
0.224 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
future_test2.py
0.146 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
gdb_sample.py
0.149 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
good_getattr.py
0.193 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
idnsans.pem
9.709 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
ieee754.txt
3.206 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
imp_dummy.py
0.062 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
inspect_fodder.py
1.238 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
inspect_fodder2.py
1.773 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
keycert.passwd.pem
4.126 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
keycert.pem
3.963 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
keycert2.pem
3.971 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
keycert3.pem
9.219 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
keycert4.pem
9.232 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
keycertecc.pem
5.501 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
list_tests.py
16.539 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
lock_tests.py
28.265 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
mailcap.txt
1.24 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
make_ssl_certs.py
8.523 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
mapping_tests.py
21.746 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
math_testcases.txt
23.186 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
memory_watchdog.py
0.839 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
mime.types
47.372 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
mock_socket.py
3.526 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
mod_generics_cache.py
1.133 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
mp_fork_bomb.py
0.438 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
mp_preload.py
0.343 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
multibytecodec_support.py
14.169 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
nokia.pem
1.878 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
nullbytecert.pem
5.308 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
nullcert.pem
0 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
outstanding_bugs.py
0.361 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
pickletester.py
108.893 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
profilee.py
2.97 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
pstats.pck
65.046 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
pycacert.pem
5.523 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
pycakey.pem
2.426 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
pyclbr_input.py
0.633 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
pydoc_mod.py
0.696 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
pydocfodder.py
6.184 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
pythoninfo.py
18.748 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
randv2_32.pck
7.341 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
randv2_64.pck
7.192 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
randv3.pck
7.816 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
re_tests.py
31.058 KB
17 Apr 2024 5.36 PM
root / linksafe
0755
recursion.tar
0.504 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
regrtest.py
1.345 KB
17 Apr 2024 5.36 PM
root / linksafe
0755
relimport.py
0.026 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
reperf.py
0.525 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
revocation.crl
0.781 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
sample_doctest.py
1.017 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
sample_doctest_no_docstrings.py
0.222 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
sample_doctest_no_doctests.py
0.263 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
secp384r1.pem
0.25 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
selfsigned_pythontestdotnet.pem
2.08 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
seq_tests.py
14.183 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
sgml_input.html
8.1 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
signalinterproctester.py
2.696 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
sortperf.py
4.693 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
ssl_cert.pem
1.533 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
ssl_key.passwd.pem
2.592 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
ssl_key.pem
2.43 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
ssl_servers.py
7.042 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
ssltests.py
1.026 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
string_tests.py
64.655 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
talos-2019-0758.pem
1.299 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
test___all__.py
3.809 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test___future__.py
2.364 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test__locale.py
7.71 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test__opcode.py
0.83 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test__osx_support.py
13.655 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_abc.py
18.001 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_abstract_numbers.py
1.492 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_aifc.py
17.7 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_argparse.py
169.132 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_array.py
47.38 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_asdl_parser.py
3.924 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ast.py
56.941 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_asyncgen.py
33.206 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_asynchat.py
9.309 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_asyncore.py
25.812 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_atexit.py
5.812 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_audioop.py
28.236 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_augassign.py
7.684 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_base64.py
30.169 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_baseexception.py
6.864 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_bdb.py
41.21 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_bigaddrspace.py
2.92 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_bigmem.py
44.883 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_binascii.py
16.938 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_binhex.py
1.463 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_binop.py
14.14 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_bisect.py
13.633 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_bool.py
12.519 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_buffer.py
159.076 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_bufio.py
2.536 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_builtin.py
71.426 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_bytes.py
68.752 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_bz2.py
36.694 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_c_locale_coercion.py
18.344 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_calendar.py
48.715 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_call.py
14.591 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_capi.py
22.542 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_cgi.py
23.439 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_cgitb.py
2.505 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_charmapcodec.py
1.678 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_class.py
16.935 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_clinic.py
21.24 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_cmath.py
24.275 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_cmd.py
6.103 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_cmd_line.py
31.752 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_cmd_line_script.py
29.146 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_code.py
10.402 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_code_module.py
5.514 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codeccallbacks.py
42.796 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecencodings_cn.py
3.857 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecencodings_hk.py
0.685 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecencodings_iso2022.py
1.357 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecencodings_jp.py
4.792 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecencodings_kr.py
2.957 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecencodings_tw.py
0.665 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecmaps_cn.py
0.729 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecmaps_hk.py
0.377 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecmaps_jp.py
1.703 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecmaps_kr.py
1.16 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecmaps_tw.py
0.688 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codecs.py
130.731 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_codeop.py
7.626 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_collections.py
79.609 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_colorsys.py
3.835 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_compare.py
3.822 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_compile.py
34.987 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_compileall.py
26.775 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_complex.py
29.677 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_concurrent_futures.py
43.15 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_configparser.py
84.69 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_contains.py
3.485 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_context.py
30.744 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_contextlib.py
32.498 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_contextlib_async.py
14.695 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_copy.py
25.813 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_copyreg.py
4.393 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_coroutines.py
62.272 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_cprofile.py
6.154 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_crashers.py
1.156 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_crypt.py
3.505 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_csv.py
47.06 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ctypes.py
0.18 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_curses.py
18.85 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dataclasses.py
107.41 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_datetime.py
2.149 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dbm.py
6.436 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dbm_dumb.py
10.772 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dbm_gnu.py
5.219 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dbm_ndbm.py
4.306 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_decimal.py
207.145 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_decorators.py
9.477 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_defaultdict.py
5.876 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_deque.py
33.839 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_descr.py
185.702 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_descrtut.py
11.527 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_devpoll.py
4.51 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dict.py
40.024 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dict_version.py
5.869 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dictcomps.py
3.668 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dictviews.py
11.684 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_difflib.py
19.358 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_difflib_expect.html
100.846 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
test_dis.py
48.528 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_distutils.py
0.366 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_doctest.py
98.512 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_doctest.txt
0.293 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
test_doctest2.py
2.304 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_doctest2.txt
0.383 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
test_doctest3.txt
0.08 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
test_doctest4.txt
0.238 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
test_docxmlrpc.py
8.697 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dtrace.py
5.23 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dummy_thread.py
9.694 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dummy_threading.py
1.702 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dynamic.py
4.291 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_dynamicclassattribute.py
9.565 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_eintr.py
1.321 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_embed.py
20.383 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ensurepip.py
9.828 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_enum.py
106.033 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_enumerate.py
7.897 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_eof.py
0.784 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_epoll.py
8.993 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_errno.py
1.044 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_exception_hierarchy.py
7.229 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_exception_variations.py
3.855 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_exceptions.py
47.483 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_extcall.py
12.09 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_faulthandler.py
27.983 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_fcntl.py
6.23 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_file.py
10.613 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_file_eintr.py
10.6 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_filecmp.py
8.686 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_fileinput.py
37.294 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_fileio.py
19.188 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_finalization.py
14.162 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_float.py
63.005 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_flufl.py
1.315 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_fnmatch.py
5.065 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_fork1.py
3.715 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_format.py
22.473 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_fractions.py
27.029 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_frame.py
5.67 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_frozen.py
0.947 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_fstring.py
40.232 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ftplib.py
39.749 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_funcattrs.py
13.252 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_functools.py
82.598 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_future.py
9.983 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_future3.py
0.479 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_future4.py
0.217 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_future5.py
0.498 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_gc.py
36.082 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_gdb.py
40.089 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_generator_stop.py
0.921 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_generators.py
58.475 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_genericclass.py
9.282 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_genericpath.py
20.54 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_genexps.py
7.115 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_getargs2.py
45.504 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_getopt.py
6.748 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_getpass.py
6.286 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_gettext.py
33.118 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_glob.py
12.391 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_global.py
1.309 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_grammar.py
48.456 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_grp.py
3.543 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_gzip.py
27.717 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_hash.py
11.447 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_hashlib.py
39.089 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_heapq.py
15.657 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_hmac.py
21.513 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_html.py
4.234 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_htmlparser.py
31.932 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_http_cookiejar.py
75.636 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_http_cookies.py
18.126 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_httplib.py
76.63 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_httpservers.py
47.562 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_idle.py
0.803 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_imaplib.py
38.823 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_imghdr.py
4.655 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_imp.py
17.316 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_index.py
8.366 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_inspect.py
145.165 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_int.py
26.926 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_int_literal.py
6.888 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_io.py
160.77 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ioctl.py
3.194 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ipaddress.py
91.434 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_isinstance.py
9.913 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_iter.py
31.508 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_iterlen.py
7.096 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_itertools.py
99.188 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_keyword.py
5.703 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_keywordonlyarg.py
6.853 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_kqueue.py
8.806 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_largefile.py
6.831 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_lib2to3.py
0.099 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_linecache.py
7.793 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_list.py
7.688 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_listcomps.py
3.763 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_locale.py
23.556 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_logging.py
166.707 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_long.py
52.805 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_longexp.py
0.228 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_lzma.py
87.864 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_macpath.py
6.199 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_mailbox.py
90.645 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_mailcap.py
10.03 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_marshal.py
19.622 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_math.py
63.88 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_memoryio.py
31.483 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_memoryview.py
17.438 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_metaclass.py
6.201 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_mimetypes.py
8.615 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_minidom.py
65.824 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_mmap.py
27.792 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_module.py
10.302 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_modulefinder.py
9.055 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_msilib.py
4.371 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_multibytecodec.py
10.064 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_multiprocessing_fork.py
0.466 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_multiprocessing_forkserver.py
0.383 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_multiprocessing_main_handling.py
11.446 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_multiprocessing_spawn.py
0.271 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_netrc.py
5.935 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_nis.py
1.129 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_nntplib.py
61.695 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_normalization.py
3.323 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ntpath.py
23.954 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_numeric_tower.py
7.18 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_opcodes.py
3.605 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_openpty.py
0.586 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_operator.py
22.744 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_optparse.py
60.994 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ordered_dict.py
29.375 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_os.py
139.152 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ossaudiodev.py
7.057 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_osx_env.py
1.297 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_parser.py
33.129 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pathlib.py
91.461 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pdb.py
49.149 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_peepholer.py
12.809 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pickle.py
18.572 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pickletools.py
4.231 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pipes.py
6.593 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pkg.py
9.594 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pkgimport.py
2.665 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pkgutil.py
17.612 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_platform.py
17.387 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_plistlib.py
37.006 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_poll.py
7.231 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_popen.py
1.978 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_poplib.py
16.885 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_posix.py
61.465 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_posixpath.py
28.659 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pow.py
4.366 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pprint.py
43.489 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_print.py
7.37 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_profile.py
7.707 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_property.py
8.77 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pstats.py
2.889 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pty.py
11.968 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pulldom.py
12.332 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pwd.py
4.165 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_py_compile.py
8.137 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pyclbr.py
9.45 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pydoc.py
46.614 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_pyexpat.py
26.522 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_queue.py
19.069 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_quopri.py
7.775 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_raise.py
12.778 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_random.py
41.092 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_range.py
23.351 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_re.py
104.304 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_readline.py
12.946 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_regrtest.py
44.921 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_repl.py
2.249 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_reprlib.py
15.115 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_resource.py
6.796 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_richcmp.py
11.91 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_rlcompleter.py
6.298 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_robotparser.py
10.015 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_runpy.py
31.047 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sax.py
45.459 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sched.py
6.407 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_scope.py
19.704 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_script_helper.py
5.777 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_secrets.py
4.278 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_select.py
2.646 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_selectors.py
17.788 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_set.py
64.411 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_setcomps.py
3.703 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_shelve.py
6.239 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_shlex.py
11.244 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_shutil.py
78.63 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_signal.py
40.195 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_site.py
27.055 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_slice.py
8.247 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_smtpd.py
40.145 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_smtplib.py
52.911 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_smtpnet.py
2.868 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sndhdr.py
1.426 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_socket.py
223.554 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_socketserver.py
16.872 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sort.py
13.425 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_source_encoding.py
7.891 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_spwd.py
2.709 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sqlite.py
0.926 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ssl.py
195.891 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_startfile.py
1.165 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_stat.py
7.963 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_statistics.py
74.347 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_strftime.py
7.542 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_string.py
19.797 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_string_literals.py
9.827 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_stringprep.py
3.04 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_strptime.py
34.205 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_strtod.py
20.056 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_struct.py
33.4 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_structmembers.py
4.703 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_structseq.py
3.871 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_subclassinit.py
8.118 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_subprocess.py
139.503 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sunau.py
6.068 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sundry.py
2.038 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_super.py
10.652 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_support.py
23.45 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_symbol.py
1.855 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_symtable.py
6.931 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_syntax.py
22.135 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sys.py
49.65 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sys_setprofile.py
11.421 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sys_settrace.py
39.976 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_sysconfig.py
18.339 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_syslog.py
1.15 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_tarfile.py
97.462 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_tcl.py
29.202 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_telnetlib.py
12.698 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_tempfile.py
51.009 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_textwrap.py
38.838 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_thread.py
8.419 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_threaded_import.py
8.913 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_threadedtempfile.py
1.865 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_threading.py
44.214 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_threading_local.py
6.088 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_threadsignals.py
10.092 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_time.py
38.884 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_timeit.py
14.799 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_timeout.py
11.189 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_tix.py
0.738 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_tk.py
0.354 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_tokenize.py
62.677 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_trace.py
17.454 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_traceback.py
43.482 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_tracemalloc.py
36.438 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ttk_guionly.py
0.729 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ttk_textonly.py
0.292 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_tuple.py
7.578 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_turtle.py
12.36 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_typechecks.py
2.554 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_types.py
57.998 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_typing.py
92.67 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_ucn.py
9.352 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_unary.py
1.626 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_unicode.py
130.275 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_unicode_file.py
5.729 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_unicode_file_functions.py
6.84 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_unicode_identifiers.py
0.87 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_unicodedata.py
12.6 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_unittest.py
0.279 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_univnewlines.py
3.83 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_unpack.py
3.014 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_unpack_ex.py
8.731 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_urllib.py
68.913 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_urllib2.py
77.008 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_urllib2_localnet.py
24.258 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_urllib2net.py
12.394 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_urllib_response.py
1.688 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_urllibnet.py
8.901 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_urlparse.py
63.231 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_userdict.py
7.638 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_userlist.py
1.969 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_userstring.py
1.435 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_utf8_mode.py
9.168 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_utf8source.py
1.147 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_uu.py
8.834 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_uuid.py
34.146 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_venv.py
19.97 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_wait3.py
1.155 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_wait4.py
1.154 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_wave.py
6.573 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_weakref.py
68.941 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_weakset.py
14.952 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_webbrowser.py
10.471 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_winconsoleio.py
6.146 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_winreg.py
21.246 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_winsound.py
4.567 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_with.py
25.779 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_wsgiref.py
29.722 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_xdrlib.py
2.174 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_xml_dom_minicompat.py
4.182 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_xml_etree.py
116.47 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_xml_etree_c.py
8.114 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_xmlrpc.py
54.092 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_xmlrpc_net.py
0.991 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_xxtestfuzz.py
0.583 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_yield_from.py
29.964 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_zipapp.py
15.92 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_zipfile.py
104.497 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_zipfile64.py
5.723 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_zipimport.py
30.342 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_zipimport_support.py
10.463 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
test_zlib.py
34.032 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
testcodec.py
1.021 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
testtar.tar
425 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
tf_inherit_check.py
0.697 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
threaded_import_hangers.py
1.449 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
time_hashlib.py
2.874 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt
0.433 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
0.295 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
0.411 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
0.318 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
tokenize_tests.txt
2.653 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
win_console_handler.py
1.383 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
xmltests.py
0.487 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
zip_cp437_header.zip
0.264 KB
5 Jun 2023 8.45 PM
root / linksafe
0644
zipdir.zip
0.365 KB
5 Jun 2023 8.45 PM
root / linksafe
0644

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