Skip to content

Commit

Permalink
Move the assert statement to a point after deleting the temporary files
Browse files Browse the repository at this point in the history
  • Loading branch information
philhodge committed Nov 1, 2019
1 parent 2854bf9 commit 3706c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_defringe.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ def test_defringe():
print("FAILED: out_sci[('dq', 4)].data is not what was expected")
results.append(len(diff.nonzero()[0]) == 0)

assert np.alltrue(results)

in_sci.close()
in_flat.close()
in_sci.close()

clean_up() # remove temporary files and directory

assert np.alltrue(results)

0 comments on commit 3706c40

Please sign in to comment.