Skip to content

Commit

Permalink
Version 2.23, because Python 3.12 broke the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Oct 1, 2023
1 parent 91799c2 commit 5ce4651
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion sgp4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,10 @@
Changelog
---------
2023-10-01 — 2.23
* Tweaked tests to resolve breakage introduced by Python 3.12.
2023-04-27 — 2.22
* Added a ``satnum_str`` attribute, exposing the fact that the C++ now
Expand Down Expand Up @@ -707,4 +711,4 @@
| 2012-08-27 — 1.0 — Initial release
"""
__version__ = '2.22'
__version__ = '2.23'
6 changes: 4 additions & 2 deletions sgp4/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
assertEqual = _testcase.assertEqual
assertAlmostEqual = _testcase.assertAlmostEqual
assertRaises = _testcase.assertRaises
assertRaisesRegex = getattr(_testcase, 'assertRaisesRegex',
_testcase.assertRaisesRegexp)
try:
assertRaisesRegex = _testcase.assertRaisesRegex
except AttributeError:
assertRaisesRegex = _testcase.assertRaisesRegexp

error = 2e-7
rad = 180.0 / pi
Expand Down

0 comments on commit 5ce4651

Please sign in to comment.