diff options
author | Louis Sautier <sbraz@gentoo.org> | 2020-09-17 14:26:40 +0200 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2020-09-17 14:44:12 +0200 |
commit | 5648a406217ea18b214e681a9ec334f848301b09 (patch) | |
tree | 9922093dac8fe25563df40e35d0ff3f2aa66b851 /dev-python/pycountry/files | |
parent | dev-perl/Exception-Base: Cleanup old 0.250.100 (diff) | |
download | gentoo-5648a406217ea18b214e681a9ec334f848301b09.tar.gz gentoo-5648a406217ea18b214e681a9ec334f848301b09.tar.bz2 gentoo-5648a406217ea18b214e681a9ec334f848301b09.zip |
dev-python/pycountry: bump to 20.7.3, add Python 3.9 support
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'dev-python/pycountry/files')
-rw-r--r-- | dev-python/pycountry/files/pycountry-20.7.3-fix-tests-for-pypy3.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-python/pycountry/files/pycountry-20.7.3-fix-tests-for-pypy3.patch b/dev-python/pycountry/files/pycountry-20.7.3-fix-tests-for-pypy3.patch new file mode 100644 index 000000000000..453c57f362cd --- /dev/null +++ b/dev-python/pycountry/files/pycountry-20.7.3-fix-tests-for-pypy3.patch @@ -0,0 +1,21 @@ +commit 57a64b69704640bd85270d886c369ef5a31eee80 +Author: Louis Sautier <sautier.louis@gmail.com> +Date: Thu Sep 17 13:01:07 2020 +0200 + + Do not rely on CPython-specific __builtins__ for tests + + This makes test_locales pass with PyPy3. + +diff --git a/src/pycountry/tests/test_general.py b/src/pycountry/tests/test_general.py +index ea697ae..ad1090f 100644 +--- a/src/pycountry/tests/test_general.py ++++ b/src/pycountry/tests/test_general.py +@@ -149,7 +149,7 @@ def test_locales(): + german = gettext.translation( + 'iso3166', pycountry.LOCALES_DIR, languages=['de']) + german.install() +- assert __builtins__['_']('Germany') == 'Deutschland' ++ assert _('Germany') == 'Deutschland' + + + def test_removed_countries(): |