Skip to content

Commit

Permalink
Workaround for Python issue #29097. Call to datetime.fromtimestamp(0)
Browse files Browse the repository at this point in the history
returns OSError on Windows and Python 3.6+
  • Loading branch information
stevennic committed Dec 29, 2018
1 parent b5c71f9 commit b13396b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_parse_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def test_daterange_empty_field():
writer.commit()

with ix.searcher() as s:
q = query.DateRange("test", datetime.fromtimestamp(0),
q = query.DateRange("test", datetime.fromtimestamp(86400),
datetime.today())
r = s.search(q)
assert len(r) == 0
Expand Down

0 comments on commit b13396b

Please sign in to comment.