Current Path: > > opt > cloudlinux > venv > lib > python3.11 > site-packages > testfixtures
Operation : Linux premium131.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 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
tests | Directory | - | - | |
__init__.py | File | 1223 bytes | April 17 2025 13:10:58. | |
comparison.py | File | 40081 bytes | April 17 2025 13:10:58. | |
compat.py | File | 224 bytes | April 17 2025 13:10:58. | |
components.py | File | 1337 bytes | April 17 2025 13:10:58. | |
datetime.py | File | 25009 bytes | April 17 2025 13:10:58. | |
django.py | File | 2954 bytes | April 17 2025 13:10:58. | |
logcapture.py | File | 11013 bytes | April 17 2025 13:10:58. | |
mock.py | File | 1234 bytes | April 17 2025 13:10:58. | |
outputcapture.py | File | 4801 bytes | April 17 2025 13:10:58. | |
popen.py | File | 10124 bytes | April 17 2025 13:10:58. | |
replace.py | File | 12441 bytes | April 17 2025 13:10:58. | |
resolve.py | File | 2103 bytes | April 17 2025 13:10:58. | |
rmtree.py | File | 2584 bytes | April 17 2025 13:10:58. | |
shouldraise.py | File | 3664 bytes | April 17 2025 13:10:58. | |
shouldwarn.py | File | 2266 bytes | April 17 2025 13:10:58. | |
sybil.py | File | 2334 bytes | April 17 2025 13:10:58. | |
tempdirectory.py | File | 13196 bytes | April 17 2025 13:10:58. | |
twisted.py | File | 4915 bytes | April 17 2025 13:10:58. | |
utils.py | File | 2803 bytes | April 17 2025 13:10:58. | |
version.txt | File | 6 bytes | April 17 2025 13:10:58. |
# lamosity needed to make things reliable on Windows :-( # (borrowed from Python's test_support.py) import errno import os import shutil import sys import time import warnings if sys.platform.startswith("win"): # pragma: no cover def _waitfor(func, pathname, waitall=False): # Perform the operation func(pathname) # Now setup the wait loop if waitall: dirname = pathname else: dirname, name = os.path.split(pathname) dirname = dirname or '.' # Check for `pathname` to be removed from the filesystem. # The exponential backoff of the timeout amounts to a total # of ~1 second after which the deletion is probably an error # anyway. # Testing on a i7@4.3GHz shows that usually only 1 iteration is # required when contention occurs. timeout = 0.001 while timeout < 1.0: # pragma: no branch # Note we are only testing for the existence of the file(s) in # the contents of the directory regardless of any security or # access rights. If we have made it this far, we have sufficient # permissions to do that much using Python's equivalent of the # Windows API FindFirstFile. # Other Windows APIs can fail or give incorrect results when # dealing with files that are pending deletion. L = os.listdir(dirname) if not (L if waitall else name in L): # pragma: no branch return # Increase the timeout and try again time.sleep(timeout) # pragma: no cover timeout *= 2 # pragma: no cover warnings.warn('tests may fail, delete still pending for ' + pathname, # pragma: no cover RuntimeWarning, stacklevel=4) def _rmtree(path): def _rmtree_inner(path): for name in os.listdir(path): fullname = os.path.join(path, name) if os.path.isdir(fullname): _waitfor(_rmtree_inner, fullname, waitall=True) os.rmdir(fullname) else: os.unlink(fullname) _waitfor(_rmtree_inner, path, waitall=True) _waitfor(os.rmdir, path) else: _rmtree = shutil.rmtree def rmtree(path): try: _rmtree(path) except OSError as e: # pragma: no cover # Unix returns ENOENT, Windows returns ESRCH. if e.errno not in (errno.ENOENT, errno.ESRCH): # pragma: no branch raise
SILENT KILLER Tool