Skip to content

Commit 9912c18

Browse files
committed
Fix.
1 parent 2671317 commit 9912c18

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ ignore = [
122122
"COM812", # Comply with ruff-format.
123123
"ISC001", # Comply with ruff-format.
124124
"FBT",
125-
"PD901", # Avoid generic df for dataframes.
126125
"S101", # raise errors for asserts.
127126
"S603", # Call check with subprocess.run.
128127
"S607", # Call subprocess.run with partial executable path.

tests/test_capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_capturing_basic_api(self, method):
188188
assert outerr == ("", "")
189189
print("hello")
190190
capman.suspend()
191-
out, err = capman.read()
191+
out, _err = capman.read()
192192
if method == CaptureMethod.NO:
193193
assert old == (sys.stdout, sys.stderr, sys.stdin)
194194
else:

tests/test_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,5 @@ def test_no_version_raises(monkeypatch):
149149
sys.modules[name] = module
150150
monkeypatch.setitem(_MINIMUM_VERSIONS, name, "1.0.0")
151151

152-
with pytest.raises(ImportError, match="Can't determine .* fakemodule"):
152+
with pytest.raises(ImportError, match=r"Can't determine .* fakemodule"):
153153
import_optional_dependency(name)

tests/test_dag_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_raise_error_for_cycle_in_graph(dag):
153153
"115f685b0af2aef0c7317a0b48562f34cfb7a622549562bd3d34d4d948b4fdab",
154154
"55c6cef62d3e62d5f8fc65bb846e66d8d0d3ca60608c04f6f7b095ea073a7dcf",
155155
)
156-
with pytest.raises(ValueError, match="The DAG contains cycles."):
156+
with pytest.raises(ValueError, match=r"The DAG contains cycles\."):
157157
TopologicalSorter.from_dag(dag)
158158

159159

0 commit comments

Comments
 (0)