Skip to content

Commit

Permalink
Fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Apr 27, 2020
1 parent 940acda commit 181f7ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_datetimes.py
Expand Up @@ -261,9 +261,10 @@ def test_strftime():


def test_real_strftime_fall_through():
with freeze_time(ignore=['_pytest']):
time.strftime('%Y')
time.strftime('%Y', (2001, 1, 1, 1, 1, 1, 1, 1, 1)) == '2001'
this_real_year = datetime.datetime.now().year
with freeze_time():
assert time.strftime('%Y') == str(this_real_year)
assert time.strftime('%Y', (2001, 1, 1, 1, 1, 1, 1, 1, 1)) == '2001'


def test_date_object():
Expand Down

0 comments on commit 181f7ac

Please sign in to comment.