From 65bd4237e892441a6e143b7d8b7b7a3541118850 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Thu, 26 Feb 2015 09:23:52 -0500 Subject: updated tests.utils.shardedp - nows additionally checks if shard exists. --- tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/utils.py b/tests/utils.py index 1e03e66..b9de2c8 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -96,7 +96,7 @@ def shardedp(f): rel_path = relative_path(f, config) shard = "%s.shard%s" % (path.join(node, rel_path), i) i += 1 - assert path.isfile(shard) + assert path.exists(shard) and path.isfile(shard) def dirp(d): -- cgit v1.2.3