Convert glob to take a Path and a str pattern

This commit is contained in:
Joe Rickerby
2020-07-10 12:57:05 +01:00
parent 4c0af9f152
commit 44e3198880
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ def test_dir_operations(tmp_path: Path):
assert test_binary_data == bytes(output, encoding='utf8', errors='surrogateescape')
# test glob
assert container.glob(dst_dir / '*.dat') == [dst_file]
assert container.glob(dst_dir, '*.dat') == [dst_file]
# test copy dir out
new_test_dir = tmp_path / 'test_dir_new'