[testlib] /me stupid stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 22 Oct 2010 14:30:59 +0200
branchstable
changeset 6589 47cd31fd206b
parent 6587 0bf81efd55f9
child 6590 37b7f4df46b3
child 6593 0fd8792c9c8a
[testlib] /me stupid
devtools/testlib.py
--- a/devtools/testlib.py	Fri Oct 22 14:27:53 2010 +0200
+++ b/devtools/testlib.py	Fri Oct 22 14:30: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