summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRene Engelhard <rene@rene-engelhard.de>2021-12-23 16:42:21 +0100
committerRené Engelhard <rene@debian.org>2022-07-28 10:20:45 +0200
commit7091a5416e6e1d5ff8c3b40646de30fe1458db24 (patch)
tree9a7262179f7cae37f8653f5b25cf9eb56db6c696
parent54f86db0c9267825e9283c523e990dfe71bf3fc9 (diff)
work around rounding difference on i386 in descriptiveStatistics test
No idea why this only appears now, but: ====================================================================== FAIL: test_descriptive_statistics (descriptiveStatistics.descriptiveStatistics) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/rene/tmp/autopkgtest-lxc.4j23khs6/downtmp/build.zIT/src/sc/qa/uitest/statistics/descriptiveStatistics.py", line 108, in te st_descriptive_statistics self.assertEqual(round(get_cell_by_position(document, 0, 6, 10).getValue(),14) , 0.01524095329036) AssertionError: 0.01524095329035 != 0.01524095329036 Change-Id: I496daf61a9542ea0da78e6092dd7070a2665ab0a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127363 Tested-by: René Engelhard <rene@debian.org> Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sc/qa/uitest/statistics/descriptiveStatistics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/uitest/statistics/descriptiveStatistics.py b/sc/qa/uitest/statistics/descriptiveStatistics.py
index 8241089fc710..48a15e641141 100644
--- a/sc/qa/uitest/statistics/descriptiveStatistics.py
+++ b/sc/qa/uitest/statistics/descriptiveStatistics.py
@@ -104,7 +104,7 @@ class descriptiveStatistics(UITestCase):
self.assertEqual(round(get_cell_by_position(document, 0, 6, 7).getValue(),11) , 139.49090909091)
self.assertEqual(round(get_cell_by_position(document, 0, 6, 8).getValue(),12) , 11.810626955878)
self.assertEqual(round(get_cell_by_position(document, 0, 6, 9).getValue(),13) , -1.4621677980825)
- self.assertEqual(round(get_cell_by_position(document, 0, 6, 10).getValue(),14) , 0.01524095329036)
+ self.assertEqual(round(get_cell_by_position(document, 0, 6, 10).getValue(),13) , 0.0152409532904)
self.assertEqual(get_cell_by_position(document, 0, 6, 11).getValue() , 31)
self.assertEqual(get_cell_by_position(document, 0, 6, 12).getValue() , 26)
self.assertEqual(get_cell_by_position(document, 0, 6, 13).getValue() , 57)