[pypy-svn] r55289 - pypy/django/tests
antocuni at codespeak.net
antocuni at codespeak.net
Tue May 27 10:19:14 CEST 2008
Author: antocuni
Date: Tue May 27 10:19:12 2008
New Revision: 55289
Modified:
pypy/django/tests/conftest.py
Log:
use a better name than "foo" for doctests
Modified: pypy/django/tests/conftest.py
==============================================================================
--- pypy/django/tests/conftest.py (original)
+++ pypy/django/tests/conftest.py Tue May 27 10:19:12 2008
@@ -52,7 +52,8 @@
parser = _doctest.DocTestParser()
globs = mod.__dict__.copy()
assert docstring is not None
- test = parser.get_doctest(docstring, globs, "foo", mod.__file__, 0)
+ name = os.path.basename(mod.__file__)
+ test = parser.get_doctest(docstring, globs, name, mod.__file__, 0)
runner.run(test)
if runner.failures:
py.test.fail("doctest %s: %s failed out of %s" %(
More information about the Pypy-commit
mailing list