Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Sep 26, 2020
1 parent 5e01464 commit e203fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_cftime.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def test_tz_naive(self):
'all_leap', '365_day', '366_day', '360_day']
verbose = True # print out max error diagnostics
dateref = datetime(2015,2,28,12)
ntimes = 1001
ntimes = 101
def roundtrip(delta,eps,units):
times1 = date2num(dateref,units,calendar=calendar)
times1 += delta*np.arange(0,ntimes)
Expand Down Expand Up @@ -1788,7 +1788,7 @@ def test_num2date_only_use_python_datetimes_invalid_basedate(
def test_num2date_invalid_zero_reference_year(real_world_calendar):
units = "days since 0000-01-01"
numeric_times = np.array([1, 2, 3, 4])
with pytest.raises(ValueError, match="zero not allowed as a reference"):
with pytest.raises(ValueError):
num2date(
numeric_times,
units=units,
Expand Down

0 comments on commit e203fb8

Please sign in to comment.