diff options
| author | Jonathan Lange <jml@mumak.net> | 2007-01-14 17:02:10 +1100 |
|---|---|---|
| committer | Jonathan Lange <jml@mumak.net> | 2007-01-14 17:02:10 +1100 |
| commit | 501ba57871b35bab0bce1da4b72f7990a4f9dc14 (patch) | |
| tree | 1c432029b34f03bfad5e9bd0feedca532c13b667 /python/subunit/__init__.py | |
| parent | 456a72762dba322282be49fbb7c6ef522cacb369 (diff) | |
| download | subunit-git-501ba57871b35bab0bce1da4b72f7990a4f9dc14.tar.gz | |
Make ExecTestCase test docstring/paths relative to the module they are
defined in.
Diffstat (limited to 'python/subunit/__init__.py')
| -rw-r--r-- | python/subunit/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index caab176..f56f724 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -283,7 +283,8 @@ class ExecTestCase(unittest.TestCase): """ unittest.TestCase.__init__(self, methodName) testMethod = getattr(self, methodName) - self.script = testMethod.__doc__ + self.script = sibpath(sys.modules[self.__class__.__module__].__file__, + testMethod.__doc__) def countTestCases(self): return 1 |
