backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 22 Oct 2010 14:32:59 +0200
changeset 6590 37b7f4df46b3
parent 6588 f8320a8c3c9d (current diff)
parent 6589 47cd31fd206b (diff)
child 6591 b5ed84c53b3f
backport stable
devtools/testlib.py
--- a/devtools/testlib.py	Fri Oct 22 14:28:09 2010 +0200
+++ b/devtools/testlib.py	Fri Oct 22 14:32:59 2010 +0200
@@ -199,8 +199,7 @@
         try:
             return cls.__dict__['_config']
         except KeyError:
-            home = join(dirname(sys.modules[self.__class__.__module__].__file__),
-                        cls.appid)
+            home = join(dirname(sys.modules[cls.__module__].__file__), cls.appid)
             config = cls._config = cls.configcls(cls.appid, apphome=home)
             config.mode = 'test'
             return config