Skip to content
Permalink
Browse files

pgsql12 tests: Python 3.6 compatibility

  • Loading branch information
espinafre authored and nyalldawson committed Dec 22, 2020
1 parent 3637689 commit 89a1e13512cb427cd2d67803d99d802f5f7e4070
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/src/python/test_provider_postgres.py
@@ -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')))

0 comments on commit 89a1e13

Please sign in to comment.
You can’t perform that action at this time.