mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-10 16:22:33 +03:00
Skip in older postgres
This commit is contained in:
parent
4dbc04fd82
commit
464d17e8f3
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
||||||
- {python: "3.10", postgres: "14"}
|
- {python: "3.10", postgres: "14"}
|
||||||
- {python: "3.11", postgres: "15"}
|
- {python: "3.11", postgres: "15"}
|
||||||
- {python: "3.12", postgres: "16"}
|
- {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
|
# Opposite extremes of the supported Py/PG range, other architecture
|
||||||
- {python: "3.8", postgres: "17", architecture: "x86"}
|
- {python: "3.8", postgres: "17", architecture: "x86"}
|
||||||
|
@ -26,7 +26,7 @@ jobs:
|
||||||
- {python: "3.10", postgres: "15", architecture: "x86"}
|
- {python: "3.10", postgres: "15", architecture: "x86"}
|
||||||
- {python: "3.11", postgres: "14", architecture: "x86"}
|
- {python: "3.11", postgres: "14", architecture: "x86"}
|
||||||
- {python: "3.12", postgres: "13", 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:
|
env:
|
||||||
PSYCOPG2_TESTDB: postgres
|
PSYCOPG2_TESTDB: postgres
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -6,6 +6,7 @@ What's new in psycopg 2.9.10 (unreleased)
|
||||||
|
|
||||||
- Add support for Python 3.13.
|
- Add support for Python 3.13.
|
||||||
- Drop support for Python 3.7.
|
- Drop support for Python 3.7.
|
||||||
|
- Fix ``Decimal('Infinity')`` adaptation.
|
||||||
|
|
||||||
|
|
||||||
What's new in psycopg 2.9.9
|
What's new in psycopg 2.9.9
|
||||||
|
|
|
@ -74,6 +74,9 @@ class TypesBasicTests(ConnectingTestCase):
|
||||||
self.failUnless(str(s) == "NaN", "wrong decimal quoting: " + str(s))
|
self.failUnless(str(s) == "NaN", "wrong decimal quoting: " + str(s))
|
||||||
self.failUnless(type(s) == decimal.Decimal,
|
self.failUnless(type(s) == decimal.Decimal,
|
||||||
"wrong decimal conversion: " + repr(s))
|
"wrong decimal conversion: " + repr(s))
|
||||||
|
|
||||||
|
@testutils.skip_before_postgres(14, 0)
|
||||||
|
def testDecimalInfinity(self):
|
||||||
s = self.execute("SELECT %s AS foo", (decimal.Decimal("infinity"),))
|
s = self.execute("SELECT %s AS foo", (decimal.Decimal("infinity"),))
|
||||||
self.failUnless(str(s) == "Infinity", "wrong decimal quoting: " + str(s))
|
self.failUnless(str(s) == "Infinity", "wrong decimal quoting: " + str(s))
|
||||||
self.failUnless(type(s) == decimal.Decimal,
|
self.failUnless(type(s) == decimal.Decimal,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user