missing file removal fails on python 2; catch failure
@@ -202,7 +202,10 @@ class TestWritableLayout:
# files that produce the same path.
with pytest.raises(ValueError):
layout.copy_files(path_patterns=pat)
+ try:
os.remove(example_file)
+ except OSError:
+ pass
layout.copy_files(path_patterns=pat, conflicts='overwrite')
assert exists(example_file)
