Skip to content

Commit

Permalink
pgsql12 tests: Python 3.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
espinafre authored and nyalldawson committed Dec 22, 2020
1 parent 3637689 commit 89a1e13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/src/python/test_provider_postgres.py
Expand Up @@ -905,7 +905,10 @@ def testPktCompositeFloat(self):
self.assertTrue(f4.isValid())
expected_attrs = [4, -9223372036854775800, 7.29154, 'other test']
gotten_attrs = [f4['pk1'], f4['pk2'], f4['pk3'], f4['value']]
self.assertAlmostEqual(gotten_attrs, expected_attrs)
self.assertEqual(gotten_attrs[0], expected_attrs[0])
self.assertEqual(gotten_attrs[1], expected_attrs[1])
self.assertAlmostEqual(gotten_attrs[2], expected_attrs[2])
self.assertEqual(gotten_attrs[3], expected_attrs[3])

# Finally, let's delete one of the features.
f5 = next(vl2.getFeatures(QgsFeatureRequest().setFilterExpression('pk3 = 7.29154')))
Expand Down

0 comments on commit 89a1e13

Please sign in to comment.