Skip to content

Commit

Permalink
fix test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Nov 14, 2023
1 parent ebb8e0a commit 322be46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/providers/test_date_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ def test_unix_time(self):
@pytest.mark.skipif(not sys.platform.startswith("win"), reason="windows does not support sub second precision")
def test_unix_time_win(self):
unix_time = self.fake.unix_time()
assert isinstance(unix_time, int)
assert isinstance(unix_time, float)
assert unix_time % 1 == 0.0

@pytest.mark.skipif(sys.platform.startswith("win"), reason="non windows does support sub second precision")
def test_unix_time_non_win(self):
Expand Down

0 comments on commit 322be46

Please sign in to comment.