Skip to content

Commit a9682f8

Browse files
committed
test: ignore a SyntaxWarning caused by one of our tests
1 parent 7e3acd9 commit a9682f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ def set_warnings() -> None:
6060

6161
warnings.filterwarnings("ignore", r".*no-sysmon")
6262

63+
# We have a test that has a return in a finally.
64+
warnings.filterwarnings("ignore", "'return' in a 'finally' block", category=SyntaxWarning)
65+
6366

6467
@pytest.fixture(autouse=True)
6568
def reset_sys_path() -> Iterator[None]:

0 commit comments

Comments
 (0)