Skip to content

Commit

Permalink
Remove matching string
Browse files Browse the repository at this point in the history
  • Loading branch information
pvk-developer committed Apr 25, 2024
1 parent 83faae5 commit 22414b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/unit/io/test_local.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Unit tests for local file handlers."""
import os
import re
from pathlib import Path
from unittest.mock import patch

Expand Down Expand Up @@ -152,8 +151,7 @@ def test_write_file_exists(self, tmpdir):
handler = CSVHandler()

# Run
error_msg = re.escape(f"{FileExistsError(tmpdir / 'synthetic_data' / 'table1.csv')}")
with pytest.raises(FileExistsError, match=error_msg):
with pytest.raises(FileExistsError):
handler.write(synthetic_data, tmpdir / 'synthetic_data')

def test_write_file_exists_mode_is_a(self, tmpdir):
Expand Down

0 comments on commit 22414b5

Please sign in to comment.