[Bug 927611] Review Request: pyode - Open-source Python bindings for The Open Dynamics Engine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=927611

--- Comment #10 from John Morris <john@xxxxxxxxxxx> ---
Created attachment 740048
  --> https://bugzilla.redhat.com/attachment.cgi?id=740048&action=edit
patch to fix rounding errors in %check script

Fix rounding-error test failures on Fedora 17-20 (but not el6!) (64-bit only?)

Differences of 5*10^-8, as shown in below output, cause tests to fail.

Fix by adding new check 'assertFloatListsAlmostEqual' which
recursively sorts through lists/tuples and compares floats with
'assertAlmostEqual'.

http://docs.python.org/2/library/unittest.html#unittest.TestCase.assertAlmostEqual


======================================================================
FAIL: testAMotorAxes3 (__main__.TestJointParser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_xode.py", line 594, in testAMotorAxes3
    self.assertEqual(ref, axes)
AssertionError: Lists differ: [(1.0, 0.0, 0.0), (0.0, 1.0, 0... !=
[(0.9999999403953552, 0.0, 0.0...
First differing element 0:
(1.0, 0.0, 0.0)
(0.9999999403953552, 0.0, 0.0)
- [(1.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0)]
+ [(0.9999999403953552, 0.0, 0.0),
+  (0.0, 0.9999999403953552, 0.0),
+  (0.0, 0.0, 0.9999999403953552)]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=CtnfjTD4TP&a=cc_unsubscribe
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review





[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]