diff --git a/tests/conftest.py b/tests/conftest.py index 91f1283aa2..4c379cadba 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ import socket +import sys import pytest @@ -10,3 +11,9 @@ def free_port(): port_number = s.getsockname()[1] s.close() return port_number + + +if sys.version_info < (3, 8): + # Ignore unused Textual snapshots on Python 3.7 + def pytest_configure(config): + config.option.warn_unused_snapshots = True