diff --git a/tests/providers/test_date_time.py b/tests/providers/test_date_time.py index bb8cb69a0a..797a369432 100644 --- a/tests/providers/test_date_time.py +++ b/tests/providers/test_date_time.py @@ -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):