[pypy-commit] pypy py3.5: ok there is no point: the '_locale' module no longer hacks at the 'string' module in py3
arigo
pypy.commits at gmail.com
Sat Feb 18 15:36:53 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r90184:8c20ae4ead12
Date: 2017-02-18 21:36 +0100
http://bitbucket.org/pypy/pypy/changeset/8c20ae4ead12/
Log: ok there is no point: the '_locale' module no longer hacks at the
'string' module in py3
diff --git a/pypy/module/_locale/test/test_locale.py b/pypy/module/_locale/test/test_locale.py
--- a/pypy/module/_locale/test/test_locale.py
+++ b/pypy/module/_locale/test/test_locale.py
@@ -106,24 +106,6 @@
assert _locale.setlocale(_locale.LC_ALL, None)
assert _locale.setlocale(_locale.LC_ALL)
- def test_string_ulcase(self):
- if not hasattr(self, 'language_utf8'):
- skip("No utf8 locale on this platform")
- import _locale, string
-
- lcase = "abcdefghijklmnopqrstuvwxyz"
- ucase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-
- _locale.setlocale(_locale.LC_ALL, self.language_utf8)
- assert string.ascii_lowercase == lcase
- assert string.ascii_uppercase == ucase
-
- _locale.setlocale(_locale.LC_ALL, self.language_en)
-
- # the asserts below are just plain wrong
- # assert string.lowercase != lcase
- # assert string.uppercase != ucase
-
def test_localeconv(self):
import _locale
More information about the pypy-commit
mailing list