From 07ee2bc39ed225bc43129fc9f6260c728c5295c6 Mon Sep 17 00:00:00 2001 From: hpk Date: Wed, 7 Feb 2007 18:58:47 +0100 Subject: [PATCH] [svn r38083] saner tempdir using --HG-- branch : trunk --- py/test/testing/test_collect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/test/testing/test_collect.py b/py/test/testing/test_collect.py index 746fc1970..1c082d3af 100644 --- a/py/test/testing/test_collect.py +++ b/py/test/testing/test_collect.py @@ -79,11 +79,11 @@ def test_module_file_not_found(): 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'))