Skip to content

Commit

Permalink
To help fix CI, make test assert more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Jan 27, 2023
1 parent cd3e824 commit 8f44082
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sgp4/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ def make_sat(satnum_string):
assert sat.satnum == satnum
if sys.version_info < (3,):
continue
assert sat.satnum_str.decode('ascii') == satnum_string
decoded = sat.satnum_str.decode('ascii')
assert decoded == satnum_string, (
'sat.satnum_str %r != %r' % (decoded, satnum_string))

args = sgp4init_args(VANGUARD_ATTRS)
for satnum, satnum_string in cases:
Expand Down

0 comments on commit 8f44082

Please sign in to comment.