[py-svn] r38083 - py/trunk/py/test/testing
hpk at codespeak.net
hpk at codespeak.net
Wed Feb 7 18:58:49 CET 2007
Author: hpk
Date: Wed Feb 7 18:58:47 2007
New Revision: 38083
Modified:
py/trunk/py/test/testing/test_collect.py
Log:
saner tempdir using
Modified: py/trunk/py/test/testing/test_collect.py
==============================================================================
--- py/trunk/py/test/testing/test_collect.py (original)
+++ py/trunk/py/test/testing/test_collect.py Wed Feb 7 18:58:47 2007
@@ -79,11 +79,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")
+ p = py.test.ensuretemp("syntaxerror1").join('syntax_error.py')
+ p.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)
- (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