Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
numpy /
typing /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
data
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
test_generic_alias.py
4.87
KB
-rw-r--r--
test_isfile.py
857
B
-rw-r--r--
test_runtime.py
2.61
KB
-rw-r--r--
test_typing.py
11.82
KB
-rw-r--r--
test_typing_extensions.py
1002
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_typing_extensions.py
"""Tests for the optional typing-extensions dependency.""" import sys import textwrap import subprocess CODE = textwrap.dedent(r""" import sys import importlib assert "typing_extensions" not in sys.modules assert "numpy.typing" not in sys.modules # Importing `typing_extensions` will now raise an `ImportError` sys.modules["typing_extensions"] = None assert importlib.import_module("numpy.typing") """) def test_no_typing_extensions() -> None: """Import `numpy.typing` in the absence of typing-extensions. Notes ----- Ideally, we'd just run the normal typing tests in an environment where typing-extensions is not installed, but unfortunatelly this is currently impossible as it is an indirect hard dependency of pytest. """ p = subprocess.run([sys.executable, '-c', CODE], capture_output=True) if p.returncode: raise AssertionError( f"Non-zero return code: {p.returncode!r}\n\n{p.stderr.decode()}" )
Close