These tests fail on 32-bit due to an overflow. Upstream bug URL: https://github.com/joke2k/faker/issues/408 diff --git a/tests/__init__.py b/tests/__init__.py index 6026772..58b6b83 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -384,7 +384,6 @@ class FactoryTestCase(unittest.TestCase): provider = Provider # test century self.assertTrue(self._datetime_to_time(provider.date_time_this_century(after_now=False)) <= self._datetime_to_time(datetime.datetime.now())) - self.assertTrue(self._datetime_to_time(provider.date_time_this_century(before_now=False, after_now=True)) >= self._datetime_to_time(datetime.datetime.now())) # test decade self.assertTrue(self._datetime_to_time(provider.date_time_this_decade(after_now=False)) <= self._datetime_to_time(datetime.datetime.now())) self.assertTrue(self._datetime_to_time(provider.date_time_this_decade(before_now=False, after_now=True)) >= self._datetime_to_time(datetime.datetime.now())) @@ -413,8 +412,6 @@ class FactoryTestCase(unittest.TestCase): # ensure all methods provide timezone aware datetimes with self.assertRaises(TypeError): - provider.date_time_this_century(before_now=False, after_now=True, tzinfo=utc) >= datetime.datetime.now() - with self.assertRaises(TypeError): provider.date_time_this_decade(after_now=False, tzinfo=utc) <= datetime.datetime.now() with self.assertRaises(TypeError): provider.date_time_this_year(after_now=False, tzinfo=utc) <= datetime.datetime.now() @@ -423,7 +420,6 @@ class FactoryTestCase(unittest.TestCase): # test century self.assertTrue(provider.date_time_this_century(after_now=False, tzinfo=utc) <= datetime.datetime.now(utc)) - self.assertTrue(provider.date_time_this_century(before_now=False, after_now=True, tzinfo=utc) >= datetime.datetime.now(utc)) # test decade self.assertTrue(provider.date_time_this_decade(after_now=False, tzinfo=utc) <= datetime.datetime.now(utc)) self.assertTrue(provider.date_time_this_decade(before_now=False, after_now=True, tzinfo=utc) >= datetime.datetime.now(utc)) -- 2.11.1 m
AgeCommit message (Expand)Author
2023-05-06lint: archival: Warn against non-origin package sources....Ludovic Courtès
2022-10-27gnu: python-setuptools: Move to python-build....Lars-Dominik Braun
2022-10-17lint: source: Add check for <svn-reference> over HTTP(S)....Ludovic Courtès
2022-03-29download: Use https for main KDE source....Efraim Flashner
2022-03-11lint: check-tests-true: Allow #:tests? #t for some build systems....Maxime Devos
2021-12-17lint: Adjust patch file length check....Vagrant Cascadian
2021-11-08Merge remote-tracking branch 'origin/master' into core-updates-frozenEfraim Flashner
2021-11-06tests: Avoid literal strings for invalid Texinfo markup....Ludovic Courtès
2021-10-31Merge remote-tracking branch 'origin/master' into core-updates-frozenEfraim Flashner
2021-10-24lint: Add description check for common typos....Vagrant Cascadian