Skip to content
Permalink
Browse files

pgsql12 tests: Floating point comparison precision.

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

0 comments on commit f055d2e

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