avoid dependency on directory ordering

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-01-03 18:19:52 +01:00
parent ff5c1b6611
commit 3239bd250b
1 changed files with 3 additions and 3 deletions

View File

@ -188,9 +188,9 @@ class TestLocalPath(common.CommonFSTests):
p2 = tmpdir.ensure("b","2") p2 = tmpdir.ensure("b","2")
p3 = tmpdir.ensure("breadth") p3 = tmpdir.ensure("breadth")
l = list(tmpdir.visit(lambda x: x.check(file=1))) l = list(tmpdir.visit(lambda x: x.check(file=1)))
assert l[0] == p1 assert len(l) == 3
assert l[1] == p2 # check that breadth comes last
assert l[2] == p3 assert l[2] == p3
class TestExecutionOnWindows: class TestExecutionOnWindows:
pytestmark = py.test.mark.skipif("sys.platform != 'win32'") pytestmark = py.test.mark.skipif("sys.platform != 'win32'")