OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
hps
/
faces
/
faces
/
lib
/
python3.10
/
site-packages
/
numpy
/
typing
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/26/2024 01:28:24 PM
rwxr-xr-x
📄
__init__.py
0 bytes
10/26/2024 01:28:24 PM
rw-r--r--
📁
__pycache__
-
10/26/2024 01:29:32 PM
rwxr-xr-x
📁
data
-
10/26/2024 01:30:09 PM
rwxr-xr-x
📄
test_generic_alias.py
6.87 KB
10/26/2024 01:28:24 PM
rw-r--r--
📄
test_isfile.py
812 bytes
10/26/2024 01:28:24 PM
rw-r--r--
📄
test_runtime.py
3.3 KB
10/26/2024 01:28:24 PM
rw-r--r--
📄
test_typing.py
14.95 KB
10/26/2024 01:28:24 PM
rw-r--r--
Editing: test_isfile.py
Close
import os from pathlib import Path import numpy as np from numpy.testing import assert_ ROOT = Path(np.__file__).parents[0] FILES = [ ROOT / "py.typed", ROOT / "__init__.pyi", ROOT / "ctypeslib.pyi", ROOT / "core" / "__init__.pyi", ROOT / "distutils" / "__init__.pyi", ROOT / "f2py" / "__init__.pyi", ROOT / "fft" / "__init__.pyi", ROOT / "lib" / "__init__.pyi", ROOT / "linalg" / "__init__.pyi", ROOT / "ma" / "__init__.pyi", ROOT / "matrixlib" / "__init__.pyi", ROOT / "polynomial" / "__init__.pyi", ROOT / "random" / "__init__.pyi", ROOT / "testing" / "__init__.pyi", ] class TestIsFile: def test_isfile(self): """Test if all ``.pyi`` files are properly installed.""" for file in FILES: assert_(os.path.isfile(file))