[pypy-commit] pypy default: 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:32 CEST 2012


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

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