GRAYBYTE WORDPRESS FILE MANAGER8166

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python37/lib64/python3.7/site-packages/simplejson/tests/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python37/lib64/python3.7/site-packages/simplejson/tests//__init__.py
from __future__ import absolute_import
import unittest
import doctest
import sys
import os


class NoExtensionTestSuite(unittest.TestSuite):
    def run(self, result):
        import simplejson
        simplejson._toggle_speedups(False)
        result = unittest.TestSuite.run(self, result)
        simplejson._toggle_speedups(True)
        return result


class TestMissingSpeedups(unittest.TestCase):
    def runTest(self):
        if hasattr(sys, 'pypy_translation_info'):
            "PyPy doesn't need speedups! :)"
        elif hasattr(self, 'skipTest'):
            self.skipTest('_speedups.so is missing!')


def additional_tests(suite=None):
    import simplejson
    import simplejson.encoder
    import simplejson.decoder
    if suite is None:
        suite = unittest.TestSuite()
    for mod in (simplejson, simplejson.encoder, simplejson.decoder):
        suite.addTest(doctest.DocTestSuite(mod))
    suite.addTest(doctest.DocFileSuite('../../index.rst'))
    return suite


def all_tests_suite():
    def get_suite():
        suite_names = [
            'simplejson.tests.%s' % (os.path.splitext(f)[0],)
            for f in os.listdir(os.path.dirname(__file__))
            if f.startswith('test_') and f.endswith('.py')
        ]
        return additional_tests(
            unittest.TestLoader().loadTestsFromNames(suite_names))
    suite = get_suite()
    import simplejson
    if simplejson._import_c_make_encoder() is None:
        suite.addTest(TestMissingSpeedups())
    else:
        suite = unittest.TestSuite([
            suite,
            NoExtensionTestSuite([get_suite()]),
        ])
    return suite


def main():
    runner = unittest.TextTestRunner(verbosity=1 + sys.argv.count('-v'))
    suite = all_tests_suite()
    raise SystemExit(not runner.run(suite).wasSuccessful())


if __name__ == '__main__':
    import os
    import sys
    sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
    main()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 19:12:24
root / root
0755
__pycache__
--
March 03 2024 19:12:24
root / root
0755
__init__.py
1.933 KB
November 05 2017 18:28:38
root / root
0644
test_bigint_as_string.py
2.186 KB
November 05 2017 18:28:38
root / root
0644
test_bitsize_int_as_string.py
2.243 KB
November 05 2017 18:28:38
root / root
0644
test_check_circular.py
0.896 KB
November 05 2017 18:28:38
root / root
0644
test_decimal.py
2.484 KB
November 05 2017 18:28:38
root / root
0644
test_decode.py
3.927 KB
November 05 2017 18:28:38
root / root
0644
test_default.py
0.216 KB
November 05 2017 18:28:38
root / root
0644
test_dump.py
4.882 KB
November 05 2017 18:28:38
root / root
0644
test_encode_basestring_ascii.py
2.282 KB
November 05 2017 18:28:38
root / root
0644
test_encode_for_html.py
0.998 KB
November 05 2017 18:28:38
root / root
0644
test_errors.py
1.513 KB
November 05 2017 18:28:38
root / root
0644
test_fail.py
6.197 KB
November 05 2017 18:28:38
root / root
0644
test_float.py
1.396 KB
November 05 2017 18:28:38
root / root
0644
test_for_json.py
2.702 KB
November 05 2017 18:28:38
root / root
0644
test_indent.py
2.508 KB
November 05 2017 18:28:38
root / root
0644
test_item_sort_key.py
1.344 KB
November 05 2017 18:28:38
root / root
0644
test_iterable.py
1.357 KB
November 05 2017 18:28:38
root / root
0644
test_namedtuple.py
3.91 KB
November 05 2017 18:28:38
root / root
0644
test_pass1.py
1.705 KB
November 05 2017 18:28:38
root / root
0644
test_pass2.py
0.377 KB
November 05 2017 18:28:38
root / root
0644
test_pass3.py
0.471 KB
November 05 2017 18:28:38
root / root
0644
test_raw_json.py
1.037 KB
November 05 2017 18:28:38
root / root
0644
test_recursion.py
1.64 KB
November 05 2017 18:28:38
root / root
0644
test_scanstring.py
7.14 KB
November 05 2017 18:28:38
root / root
0644
test_separators.py
0.92 KB
November 05 2017 18:28:38
root / root
0644
test_speedups.py
3.033 KB
November 05 2017 18:28:38
root / root
0644
test_str_subclass.py
0.538 KB
November 05 2017 18:28:38
root / root
0644
test_subclass.py
1.098 KB
November 05 2017 18:28:38
root / root
0644
test_tool.py
2.786 KB
November 05 2017 18:28:38
root / root
0644
test_tuple.py
1.788 KB
November 05 2017 18:28:38
root / root
0644
test_unicode.py
6.832 KB
November 05 2017 18:28:38
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF