From dcf4e564add61ade3084f515d929803f5e9f34f7 Mon Sep 17 00:00:00 2001 From: hpk Date: Thu, 8 Feb 2007 21:56:12 +0100 Subject: [PATCH] [svn r38208] make test safer against race conditiation (dist testing) --HG-- branch : trunk --- py/path/local/testing/test_local.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/path/local/testing/test_local.py b/py/path/local/testing/test_local.py index d0af16022..38a400e81 100644 --- a/py/path/local/testing/test_local.py +++ b/py/path/local/testing/test_local.py @@ -5,7 +5,7 @@ from py.__.path.testing.fscommon import CommonFSTests, setuptestfs class LocalSetup: def setup_class(cls): - cls.root = py.test.ensuretemp('TestLocalPath') + cls.root = py.test.ensuretemp(cls.__name__) cls.root.ensure(dir=1) setuptestfs(cls.root) @@ -265,10 +265,10 @@ class TestExecution(LocalSetup): py.test.skip("Fails when run as boxed tests") root = self.tmpdir for i in range(10): - numdir = local.make_numbered_dir(prefix='base.', rootdir=root, + numdir = local.make_numbered_dir(prefix='base2.', rootdir=root, keep=2) assert numdir.check() - assert numdir.basename == 'base.%d' %i + assert numdir.basename == 'base2.%d' %i for j in range(i): assert numdir.new(ext=str(j)).check()