summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-02-26 09:23:52 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-02-26 09:23:52 -0500
commit65bd4237e892441a6e143b7d8b7b7a3541118850 (patch)
tree56db561ced3c944f125bcea0241f6629eba097eb
parent6eb0555742dc1b7290c55a17b02ff108ae03591d (diff)
updated tests.utils.shardedp - nows additionally checks if shard exists.
-rw-r--r--tests/utils.py2
1 files changed, 1 insertions, 1 deletions
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):