Skip in older postgres

This commit is contained in:
Edgar Ramírez-Mondragón 2024-10-10 18:10:34 -06:00
parent 4dbc04fd82
commit 464d17e8f3
No known key found for this signature in database
GPG Key ID: 74C40D09C7B42099
3 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,7 @@ jobs:
- {python: "3.10", postgres: "14"}
- {python: "3.11", postgres: "15"}
- {python: "3.12", postgres: "16"}
- {python: "3.13-dev", postgres: "17"}
- {python: "3.13", postgres: "17"}
# Opposite extremes of the supported Py/PG range, other architecture
- {python: "3.8", postgres: "17", architecture: "x86"}
@ -26,7 +26,7 @@ jobs:
- {python: "3.10", postgres: "15", architecture: "x86"}
- {python: "3.11", postgres: "14", architecture: "x86"}
- {python: "3.12", postgres: "13", architecture: "x86"}
- {python: "3.13-dev", postgres: "12", architecture: "x86"}
- {python: "3.13", postgres: "12", architecture: "x86"}
env:
PSYCOPG2_TESTDB: postgres

1
NEWS
View File

@ -6,6 +6,7 @@ What's new in psycopg 2.9.10 (unreleased)
- Add support for Python 3.13.
- Drop support for Python 3.7.
- Fix ``Decimal('Infinity')`` adaptation.
What's new in psycopg 2.9.9

View File

@ -74,6 +74,9 @@ class TypesBasicTests(ConnectingTestCase):
self.failUnless(str(s) == "NaN", "wrong decimal quoting: " + str(s))
self.failUnless(type(s) == decimal.Decimal,
"wrong decimal conversion: " + repr(s))
@testutils.skip_before_postgres(14, 0)
def testDecimalInfinity(self):
s = self.execute("SELECT %s AS foo", (decimal.Decimal("infinity"),))
self.failUnless(str(s) == "Infinity", "wrong decimal quoting: " + str(s))
self.failUnless(type(s) == decimal.Decimal,