Skip to content

Commit 8826bb8

Browse files
[style] Use '<' or '>=' for 'sys.version_info' comparisons
1 parent 475b9c7 commit 8826bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/_py/test_local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@contextlib.contextmanager
1919
def ignore_encoding_warning():
2020
with warnings.catch_warnings():
21-
if sys.version_info > (3, 10):
21+
if sys.version_info >= (3, 10):
2222
warnings.simplefilter("ignore", EncodingWarning) # noqa: F821
2323
yield
2424

0 commit comments

Comments
 (0)