[pypy-commit] pypy py3k: don't import AppTestTypeObject directly, else the class is collected as well and we run the test twice

antocuni noreply at buildbot.pypy.org
Tue Jul 17 10:44:31 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r56091:6d852e794e4b
Date: 2012-07-17 10:42 +0200
http://bitbucket.org/pypy/pypy/changeset/6d852e794e4b/

Log:	don't import AppTestTypeObject directly, else the class is collected
	as well and we run the test twice

diff --git a/pypy/objspace/std/test/test_methodcache.py b/pypy/objspace/std/test/test_methodcache.py
--- a/pypy/objspace/std/test/test_methodcache.py
+++ b/pypy/objspace/std/test/test_methodcache.py
@@ -1,8 +1,8 @@
 from pypy.conftest import gettestobjspace
-from pypy.objspace.std.test.test_typeobject import AppTestTypeObject
+from pypy.objspace.std.test import test_typeobject
 
 
-class AppTestMethodCaching(AppTestTypeObject):
+class AppTestMethodCaching(test_typeobject.AppTestTypeObject):
     def setup_class(cls):
         cls.space = gettestobjspace(
             **{"objspace.std.withmethodcachecounter": True})


More information about the pypy-commit mailing list