From: Daniele Varrazzo Date: Tue, 29 Apr 2025 17:04:50 +0000 (+0200) Subject: test: add module to test with template strings X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f61ee84470c336eddca27a74ee501a15d3944a7d;p=thirdparty%2Fpsycopg.git test: add module to test with template strings Skip module collection on Python version which don't support the syntax. --- diff --git a/tests/conftest.py b/tests/conftest.py index 4d7a4f6cb..4f22e8224 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,6 +20,10 @@ pytest_plugins = ( "tests.pool.fix_pool", ) +collect_ignore: list[str] = [] +if sys.version_info[:2] < (3, 14): + collect_ignore.append("test_tstring.py") + def pytest_configure(config): markers = [ diff --git a/tests/test_tstring.py b/tests/test_tstring.py new file mode 100644 index 000000000..167c095a7 --- /dev/null +++ b/tests/test_tstring.py @@ -0,0 +1,2 @@ +def test_tstring(): + t""