x3x3x3x_5h3ll
— 53cur3 — 5h3ll_1d —
Linux vps-10654784.cedaps.org.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
  INFO SERVER : Apache PHP : 7.4.33
/opt/alt/python38/lib64/python3.8/unittest/
162.240.100.168

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACTN ]
+FILE +DIR
__pycache__ dir drwxr-xr-x 2023-04-05 00:29 R D
__init__.py 3.19 KB -rw-r--r-- 2021-08-30 14:26 R E G D
__main__.py 0.461 KB -rw-r--r-- 2021-08-30 14:26 R E G D
async_case.py 5.674 KB -rw-r--r-- 2021-08-30 14:26 R E G D
case.py 58.186 KB -rw-r--r-- 2021-08-30 14:26 R E G D
loader.py 22.17 KB -rw-r--r-- 2021-08-30 14:26 R E G D
main.py 10.975 KB -rw-r--r-- 2021-08-30 14:26 R E G D
mock.py 96.006 KB -rw-r--r-- 2021-08-30 14:26 R E G D
result.py 7.268 KB -rw-r--r-- 2021-08-30 14:26 R E G D
runner.py 7.585 KB -rw-r--r-- 2021-08-30 14:26 R E G D
signals.py 2.347 KB -rw-r--r-- 2021-08-30 14:26 R E G D
suite.py 12.515 KB -rw-r--r-- 2021-08-30 14:26 R E G D
util.py 5.093 KB -rw-r--r-- 2021-08-30 14:26 R E G D
REQUEST EXIT
"""Loading unittests.""" import os import re import sys import traceback import types import functools import warnings from fnmatch import fnmatch, fnmatchcase from . import case, suite, util __unittest = True # what about .pyc (etc) # we would need to avoid loading the same tests multiple times # from '.py', *and* '.pyc' VALID_MODULE_NAME = re.compile(r'[_a-z]\w*\.py$', re.IGNORECASE) class _FailedTest(case.TestCase): _testMethodName = None def __init__(self, method_name, exception): self._exception = exception super(_FailedTest, self).__init__(method_name) def __getattr__(self, name): if name != self._testMethodName: return super(_FailedTest, self).__getattr__(name) def testFailure(): raise self._exception return testFailure def _make_failed_import_test(name, suiteClass): message = 'Failed to import test module: %s\n%s' % ( name, traceback.format_exc()) return _make_failed_test(name, ImportError(message), suiteClass, message) def _make_failed_load_tests(name, exception, suiteClass): message = 'Failed to call load_tests:\n%s' % (traceback.format_exc(),) return _make_failed_test( name, exception, suiteClass, message) def _make_failed_test(methodname, exception, suiteClass, message): test = _FailedTest(methodname, exception) return suiteClass((test,)), message def _make_skipped_test(methodname, exception, suiteClass): @case.skip(str(exception)) def testSkipped(self): pass attrs = {methodname: testSkipped} TestClass = type("ModuleSkipped", (case.TestCase,), attrs) return suiteClass((TestClass(methodname),)) def _jython_aware_splitext(path): if path.lower().endswith('$py.class'): return path[:-9] return os.path.splitext(path)[0] class TestLoader(object): """ This class is responsible for loading tests according to various criteria and returning them wrapped in a TestSuite """ testMethodPrefix = 'test' sortTestMethodsUsing = staticmethod(util.three_way_cmp) testNamePatterns = None suiteClass = suite.TestSuite _top_level_dir = None def __init__(self): super(TestLoader, self).__init__() self.errors = [] # Tracks packages which we have called into via load_tests, to # avoid infinite re-entrancy. self._loading_packages = set() def loadTestsFromTestCase(self, testCaseCla