Skip to content

Commit 1dca33a

Browse files
committed
Added regression test for single_reference=True bug
1 parent bb77553 commit 1dca33a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
5.63 KB
Binary file not shown.

tests/test_pytest_arraydiff.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,15 @@ def test_absolute_tolerance():
152152
return np.ones((3, 4)) * 1.6 + 1.4
153153

154154

155+
@pytest.mark.array_compare(
156+
reference_dir=reference_dir,
157+
atol=1.5,
158+
file_format='fits',
159+
single_reference=True)
160+
@pytest.mark.parametrize('spam', ('egg', 'bacon'))
161+
def test_single_reference(spam):
162+
return np.ones((3, 4)) * 1.6 + 1.4
163+
164+
155165
def test_nofile():
156166
pass

0 commit comments

Comments
 (0)