Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

Commit

Permalink
Python version compatibility in test
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfWhitt committed Nov 5, 2024
1 parent 6b6f27c commit ddab78e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_node.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from unittest.mock import Mock
from warnings import catch_warnings
from warnings import catch_warnings, filterwarnings

import pytest

Expand Down Expand Up @@ -389,5 +389,6 @@ def test_applicator_has_node_reference():
# At the point that the style tries to apply itself, the applicator should already
# have a reference to its node.

with catch_warnings(action="error", category=RuntimeWarning):
with catch_warnings():
filterwarnings("error", category=RuntimeWarning)
Node(style=AttributeTestStyle(), applicator=Mock())

0 comments on commit ddab78e

Please sign in to comment.