Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

tests fail #24

Closed
behdad opened this issue Apr 30, 2016 · 2 comments
Closed

tests fail #24

behdad opened this issue Apr 30, 2016 · 2 comments

Comments

@behdad
Copy link
Contributor

behdad commented Apr 30, 2016

======================================================================
FAIL: test_results_unchanged (cu2qu.test.cu2qu_test.CurveToQuadraticTest)
Tests that the results of conversion haven't changed since the time
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/behdad/SSD/distillery/cu2qu/Lib/cu2qu/test/cu2qu_test.py", line 74, in test_results_unchanged
    self.assertEqual(results, expected)
AssertionError: defaultdict(<type 'int'>, {2: 1, 3: 6, 4: 17, 5: 88, 6: 244, 7: 412, 8: 231, 9: 1}) != {3: 5, 4: 31, 5: 74, 6: 228, 7: 416, 8: 242, 9: 4}

======================================================================
FAIL: test_results_unchanged_multiple (cu2qu.test.cu2qu_test.CurveToQuadraticTest)
Test that conversion results are unchanged for multiple curves.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/behdad/SSD/distillery/cu2qu/Lib/cu2qu/test/cu2qu_test.py", line 93, in test_results_unchanged_multiple
    self.assertEqual(results, expected)
AssertionError: defaultdict(<type 'int'>, {8: 51, 6: 5, 7: 44}) != {8: 62, 9: 1, 6: 3, 7: 34}

----------------------------------------------------------------------
@behdad
Copy link
Contributor Author

behdad commented Apr 30, 2016

Hah. I get different numbers every time I run the tests!

@behdad
Copy link
Contributor Author

behdad commented Apr 30, 2016

Oh, because I'm running tests using "python setup.py test", which does not invoke the random-seed code.

@behdad behdad closed this as completed in 79aaf25 Apr 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant