summaryrefslogtreecommitdiff
path: root/dev-python/Babel/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-12-14 13:26:14 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-12-14 13:26:14 +0000
commit6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch)
tree25413d1cb3a0cbfe36029db32398c0f333609215 /dev-python/Babel/files
parent9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff)
gentoo resync : 14.12.2020
Diffstat (limited to 'dev-python/Babel/files')
-rw-r--r--dev-python/Babel/files/Babel-2.9.0-pypy3.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/Babel/files/Babel-2.9.0-pypy3.patch b/dev-python/Babel/files/Babel-2.9.0-pypy3.patch
new file mode 100644
index 000000000000..45d50f5ff0b7
--- /dev/null
+++ b/dev-python/Babel/files/Babel-2.9.0-pypy3.patch
@@ -0,0 +1,33 @@
+From a291ee5da29fb9767ce8dc5f94e3fa19908f2596 Mon Sep 17 00:00:00 2001
+From: Keri Volans <keri.volans@gmail.com>
+Date: Sun, 10 May 2020 18:43:58 +0100
+Subject: [PATCH] tests/test_dates.py: Fix broken test
+
+datetime was being incorrectly patched, so the unittest was failing
+
+Closes https://github.com/python-babel/babel/issues/675
+---
+ tests/test_dates.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/tests/test_dates.py b/tests/test_dates.py
+index 5be0d16a..3cd70d3e 100644
+--- a/tests/test_dates.py
++++ b/tests/test_dates.py
+@@ -761,7 +761,6 @@ def test_zh_TW_format():
+
+
+ def test_format_current_moment(monkeypatch):
+- import datetime as datetime_module
+ frozen_instant = datetime.utcnow()
+
+ class frozen_datetime(datetime):
+@@ -771,7 +770,7 @@ def utcnow(cls):
+ return frozen_instant
+
+ # Freeze time! Well, some of it anyway.
+- monkeypatch.setattr(datetime_module, "datetime", frozen_datetime)
++ monkeypatch.setattr(dates, "datetime_", frozen_datetime)
+ assert dates.format_datetime(locale="en_US") == dates.format_datetime(frozen_instant, locale="en_US")
+
+