[py-svn] r20244 - py/dist/py/test/testing
jan at codespeak.net
jan at codespeak.net
Fri Nov 25 15:48:47 CET 2005
Author: jan
Date: Fri Nov 25 15:48:46 2005
New Revision: 20244
Modified:
py/dist/py/test/testing/test_collect.py
Log:
fix problem with missing file syntax_error.py, which was deleted in rev r20109
Modified: py/dist/py/test/testing/test_collect.py
==============================================================================
--- py/dist/py/test/testing/test_collect.py (original)
+++ py/dist/py/test/testing/test_collect.py Fri Nov 25 15:48:46 2005
@@ -64,9 +64,11 @@
py.test.raises(py.error.ENOENT, col.run)
def test_syntax_error_in_module():
+ (datadir / 'syntax_error.py').write("\nthis is really not python\n")
modpath = datadir.join('syntax_error.py')
col = py.test.collect.Module(modpath)
- py.test.raises(SyntaxError, col.run)
+ py.test.raises(SyntaxError, col.run)
+ (datadir / 'syntax_error.py').remove()
def test_disabled_class():
col = py.test.collect.Module(datadir.join('disabled.py'))
More information about the pytest-commit
mailing list