[pypy-svn] r75183 - pypy/trunk/pypy/rlib/test
benjamin at codespeak.net
benjamin at codespeak.net
Mon Jun 7 21:10:20 CEST 2010
Author: benjamin
Date: Mon Jun 7 21:09:35 2010
New Revision: 75183
Modified:
pypy/trunk/pypy/rlib/test/test_rlocale.py
Log:
be robust for those of us who are't polish
Modified: pypy/trunk/pypy/rlib/test/test_rlocale.py
==============================================================================
--- pypy/trunk/pypy/rlib/test/test_rlocale.py (original)
+++ pypy/trunk/pypy/rlib/test/test_rlocale.py Mon Jun 7 21:09:35 2010
@@ -14,7 +14,8 @@
py.test.skip("polish locale unsupported")
def teardown_class(cls):
- setlocale(LC_ALL, cls.oldlocale)
+ if hasattr(cls, "oldlocale"):
+ setlocale(LC_ALL, cls.oldlocale)
def test_setlocale_worked(self):
assert u"Ą".isupper()
More information about the Pypy-commit
mailing list