summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--community/python-faker/PKGBUILD4
-rw-r--r--community/python-faker/remove-century-tests.patch16
2 files changed, 14 insertions, 6 deletions
diff --git a/community/python-faker/PKGBUILD b/community/python-faker/PKGBUILD
index 35feb85c..87168ec5 100644
--- a/community/python-faker/PKGBUILD
+++ b/community/python-faker/PKGBUILD
@@ -1,8 +1,8 @@
# https://github.com/joke2k/faker/issues/408
-# time-tests requiring 64 bit fail on i686 - obviously
+# time-tests requiring 64 bit fail on i686 - obviously (year 2100 is not representable with 32 bits)
source+=('remove-century-tests.patch')
-sha512sums+=('29613bb221b07a92cc3a7da61a7c0cbae520a6307f208c68db8523a3318138fb11f27182e4f645ffc95bc3b55c78b46f7d252d88c1881b3a761114247856c657')
+sha512sums+=('69d6c7685f49d28bc5a4ea952d6f0f6ab03e7c9956e338fc7e26d6a714de569641b82e95bb30de15b4598b6fbf3fb8e0a497fde2e28bd988fafbeb030bb24f91')
eval "$(
declare -f prepare | \
diff --git a/community/python-faker/remove-century-tests.patch b/community/python-faker/remove-century-tests.patch
index 99418a42..57cddebf 100644
--- a/community/python-faker/remove-century-tests.patch
+++ b/community/python-faker/remove-century-tests.patch
@@ -1,6 +1,6 @@
---- a/tests/providers/test_date_time.py 2017-08-30 14:27:30.361571816 +0200
-+++ b/tests/providers/test_date_time.py 2017-08-30 14:28:01.231669046 +0200
-@@ -162,9 +162,6 @@
+--- faker-0.8.4/tests/providers/test_date_time.py 2017-09-22 21:52:06.000000000 +0200
++++ test_date_time.py 2017-09-25 11:14:26.013321696 +0200
+@@ -203,9 +203,6 @@
return int(time.mktime(value.timetuple()))
def test_date_time_this_period(self):
@@ -10,7 +10,7 @@
# test decade
self.assertTrue(self._datetime_to_time(self.factory.date_time_this_decade(after_now=False)) <= self._datetime_to_time(datetime.now()))
self.assertTrue(self._datetime_to_time(self.factory.date_time_this_decade(before_now=False, after_now=True)) >= self._datetime_to_time(datetime.now()))
-@@ -190,17 +187,12 @@
+@@ -231,17 +228,12 @@
def test_date_time_this_period_with_tzinfo(self):
# ensure all methods provide timezone aware datetimes
with self.assertRaises(TypeError):
@@ -28,3 +28,11 @@
# test decade
self.assertTrue(self.factory.date_time_this_decade(after_now=False, tzinfo=utc) <= datetime.now(utc))
self.assertTrue(self.factory.date_time_this_decade(before_now=False, after_now=True, tzinfo=utc) >= datetime.now(utc))
+@@ -268,7 +260,6 @@
+ def test_date_this_period(self):
+ # test century
+ self.assertTrue(self.factory.date_this_century(after_today=False) <= date.today())
+- self.assertTrue(self.factory.date_this_century(before_today=False, after_today=True) >= date.today())
+ # test decade
+ self.assertTrue(self.factory.date_this_decade(after_today=False) <= date.today())
+ self.assertTrue(self.factory.date_this_decade(before_today=False, after_today=True) >= date.today())