OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
hps
/
faces
/
.venv
/
lib
/
python3.10
/
site-packages
/
numpy
/
compat
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/26/2024 01:27:28 PM
rwxr-xr-x
📄
__init__.py
0 bytes
10/26/2024 01:27:27 PM
rw-r--r--
📁
__pycache__
-
10/26/2024 01:28:47 PM
rwxr-xr-x
📄
test_compat.py
476 bytes
10/26/2024 01:27:27 PM
rw-r--r--
Editing: test_compat.py
Close
from os.path import join from numpy.compat import isfileobj from numpy.testing import assert_ from numpy.testing import tempdir def test_isfileobj(): with tempdir(prefix="numpy_test_compat_") as folder: filename = join(folder, 'a.bin') with open(filename, 'wb') as f: assert_(isfileobj(f)) with open(filename, 'ab') as f: assert_(isfileobj(f)) with open(filename, 'rb') as f: assert_(isfileobj(f))