From 3239bd250bacb59292f89f38241acfa46ddfeb65 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sun, 3 Jan 2010 18:19:52 +0100 Subject: [PATCH] avoid dependency on directory ordering --HG-- branch : trunk --- testing/path/test_local.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/path/test_local.py b/testing/path/test_local.py index 0efae9be7..89b0f48b4 100644 --- a/testing/path/test_local.py +++ b/testing/path/test_local.py @@ -188,9 +188,9 @@ class TestLocalPath(common.CommonFSTests): p2 = tmpdir.ensure("b","2") p3 = tmpdir.ensure("breadth") l = list(tmpdir.visit(lambda x: x.check(file=1))) - assert l[0] == p1 - assert l[1] == p2 - assert l[2] == p3 + assert len(l) == 3 + # check that breadth comes last + assert l[2] == p3 class TestExecutionOnWindows: pytestmark = py.test.mark.skipif("sys.platform != 'win32'")