From 322be4621e10734bd6cf87b53f0dbf7358aea54e Mon Sep 17 00:00:00 2001 From: Flavio Curella Date: Tue, 14 Nov 2023 13:34:35 -0600 Subject: [PATCH] fix test on windows --- tests/providers/test_date_time.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):