Skip to content

Commit

Permalink
test: fix test error with python2
Browse files Browse the repository at this point in the history
  • Loading branch information
lihsai0 committed Aug 8, 2024
1 parent e65e840 commit b58675e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/cases/test_http/test_regions_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def cached_regions_provider(request):
if persist_path:
try:
os.remove(persist_path)
except FileNotFoundError:
except OSError:
pass


Expand Down Expand Up @@ -130,7 +130,7 @@ def test_getter_with_expired_file_cache(self, cached_regions_provider):
assert list(cached_regions_provider) == [r_z0]
try:
os.remove(cached_regions_provider.persist_path)
except FileNotFoundError:
except OSError:
pass

@pytest.mark.parametrize(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def fake_progress_record(request):
def _delete():
try:
os.remove(file_path)
except FileNotFoundError:
except OSError:
pass

def _exists():
Expand Down

0 comments on commit b58675e

Please sign in to comment.