[py-svn] r13611 - py/dist/py/misc/testing
hpk at codespeak.net
hpk at codespeak.net
Mon Jun 20 11:50:08 CEST 2005
Author: hpk
Date: Mon Jun 20 11:50:07 2005
New Revision: 13611
Modified:
py/dist/py/misc/testing/test_initpkg.py
Log:
py.code.Source usually takes care of re-indenting things
appropriately
Modified: py/dist/py/misc/testing/test_initpkg.py
==============================================================================
--- py/dist/py/misc/testing/test_initpkg.py (original)
+++ py/dist/py/misc/testing/test_initpkg.py Mon Jun 20 11:50:07 2005
@@ -111,7 +111,7 @@
pkgdir = cls.tmpdir.ensure('realtest', dir=1)
tfile = pkgdir.join('__init__.py')
- tfile.write(py.code.Source("""if True:
+ tfile.write(py.code.Source("""
import py
py.initpkg('realtest', {
'module': ('./testmodule.py', py.__.initpkg.RealModule)
@@ -119,7 +119,7 @@
"""))
tfile = pkgdir.join('testmodule.py')
- tfile.write(py.code.Source("""if True:
+ tfile.write(py.code.Source("""
__all__ = ['mytest0', 'mytest1', 'MyTest']
def mytest0():
More information about the pytest-commit
mailing list