Skip to content

Commit

Permalink
Python 2.6 needs not be considered in tests anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jun 19, 2020
1 parent e771d71 commit 9e41b30
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/test_classic_dbwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,11 +1010,6 @@ def testQueryFormatted(self):
q = f("select %(a)s, %(b)s, %(c)s, %(d)s",
dict(a=3, b=2.5, c='hello', d=True), inline=True)
r = q.getresult()[0]
if isinstance(r[1], Decimal):
# Python 2.6 cannot compare float and Decimal
r = list(r)
r[1] = float(r[1])
r = tuple(r)
self.assertEqual(r, (3, 2.5, 'hello', t))
# test with dict and extra values
q = f("select %(a)s||%(b)s||%(c)s||%(d)s||'epsilon'",
Expand Down Expand Up @@ -4829,7 +4824,7 @@ def getLeaks(self, fut):
objs[:] = gc.get_objects()
objs[:] = [obj for obj in objs if id(obj) not in ids]
if objs and sys.version_info[:3] in ((3, 5, 0), (3, 5, 1)):
# workaround for Python issue 26811
# workaround for Python 3.5 issue 26811
objs[:] = [obj for obj in objs if repr(obj) != '(<NULL>,)']
self.assertEqual(len(objs), 0)

Expand Down

0 comments on commit 9e41b30

Please sign in to comment.