Skip to content

Commit 065c614

Browse files
committed
Use np directly, install numpy in GHA
1 parent 2784855 commit 065c614

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- name: Install dependencies
1717
run: |
1818
python setup.py develop
19+
pip install numpy
1920
2021
- name: Test
2122
shell: 'script -q -e -c "bash {0}"'

tests/test_pytest_icdiff.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,14 +296,13 @@ def test_one():
296296

297297
def test_np_arrays_can_use_equals(testdir) -> None:
298298
"""
299-
NP iterables will fall back to pytest default output
299+
Numpy iterables will fall back to pytest default output
300300
"""
301-
testdir.copy_example('tests/fakes.py')
302301
testdir.makepyfile("""
303-
from fakes import FakeNumpyArray
302+
import numpy as np
304303
305304
def test():
306-
result = FakeNumpyArray([1, 2, 3])
305+
result = np.array([1, 2, 3])
307306
308307
assert all(result == 2)
309308
""")

0 commit comments

Comments
 (0)