Skip to content

Commit

Permalink
Skip in older postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 11, 2024
1 parent 4dbc04f commit fd76f3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tests/test_types_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def testDecimal(self):
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,
Expand Down

0 comments on commit fd76f3a

Please sign in to comment.