[pypy-commit] pypy py3k: sys.setdefaultencoding is no longer there, use settrace for this test

antocuni noreply at buildbot.pypy.org
Mon Feb 27 17:00:26 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52934:b7200ae0e860
Date: 2012-02-27 14:20 +0100
http://bitbucket.org/pypy/pypy/changeset/b7200ae0e860/

Log:	sys.setdefaultencoding is no longer there, use settrace for this
	test

diff --git a/pypy/module/imp/test/test_import.py b/pypy/module/imp/test/test_import.py
--- a/pypy/module/imp/test/test_import.py
+++ b/pypy/module/imp/test/test_import.py
@@ -553,14 +553,14 @@
         import sys
         oldpath = sys.path
         try:
-            del sys.setdefaultencoding
+            del sys.settrace
         except AttributeError:
             pass
 
         reload(sys)
 
         assert sys.path is oldpath
-        assert 'setdefaultencoding' in dir(sys)
+        assert 'settrace' in dir(sys)
 
     def test_reload_infinite(self):
         import infinite_reload


More information about the pypy-commit mailing list