Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pgsql12 tests: Floating point comparison precision.
  • Loading branch information
espinafre authored and nyalldawson committed Dec 22, 2020
1 parent 89a1e13 commit f055d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/python/test_provider_postgres.py
Expand Up @@ -907,7 +907,7 @@ def testPktCompositeFloat(self):
gotten_attrs = [f4['pk1'], f4['pk2'], f4['pk3'], f4['value']]
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.assertAlmostEqual(gotten_attrs[2], expected_attrs[2], places=4)
self.assertEqual(gotten_attrs[3], expected_attrs[3])

# Finally, let's delete one of the features.
Expand Down

0 comments on commit f055d2e

Please sign in to comment.