Skip to content

Commit

Permalink
Use correct defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Aug 31, 2022
1 parent 9579068 commit 6c5b29a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/tst_alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ def setUp(self):
v[...] = 0
f.close()
if has_alignment:
# ensure to reset the alignment to 0 so as not to
# ensure to reset the alignment to 1 (default values) so as not to
# disrupt other tests
set_alignment(0, 0)
assert get_alignment() == (0, 0)
set_alignment(1, 1)
assert get_alignment() == (1, 1)

def test_version_settings(self):
if has_alignment:
# One should always be able to set the alignment to 0, 0
set_alignment(0, 0)
assert get_alignment() == (0, 0)
# One should always be able to set the alignment to 1, 1
set_alignment(1, 1)
assert get_alignment() == (1, 1)
else:
with self.assertRaises(RuntimeError):
set_alignment(0, 0)
set_alignment(1, 1)
with self.assertRaises(RuntimeError):
get_alignment()

Expand Down

0 comments on commit 6c5b29a

Please sign in to comment.