Skip to content

Commit

Permalink
Disable a test under Python 2 to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Jun 10, 2024
1 parent dcfa654 commit ed0e157
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skyfield/tests/test_timelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ def test_building_time_from_utc_julian_date(ts):
assert t.utc == (2017, 1, 1, 0, 0, 1.0)

def test_utc_julian_date_accuracy(ts):
if sys.version_info <= (3,):
return # our utc_strftime() hack does not work under Python 2

t = ts._utc_jd(2460439.5, 0.36689744000250357)
assert t.utc_strftime('%H:%M:%S.%f') == '08:48:19.938816'

Expand Down

0 comments on commit ed0e157

Please sign in to comment.