Opened 2 years ago
Last modified 2 years ago
#21550 new defect
Fix CoinBackend testsuite _test_solve on 32 bit
Reported by: | jdemeyer | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-7.5 |
Component: | numerical | Keywords: | |
Cc: | mkoeppe, tmonteil | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
On 32-bit Linux (Linux arando 3.13.0-95-generic #142-Ubuntu SMP Fri Aug 12 17:05:16 UTC 2016 i686 i686 i686 GNU/Linux
) with Sage 7.4.beta4:
sage: from sage.numerical.backends.generic_backend import get_solver sage: p = get_solver(solver="Coin") sage: TestSuite(p).run() Failure in _test_pickling: Traceback (most recent call last): File "/home/jdemeyer/sage-git/local/lib/python2.7/site-packages/sage/misc/sage_unittest.py", line 283, in run test_method(tester = tester) File "sage/structure/sage_object.pyx", line 620, in sage.structure.sage_object.SageObject._test_pickling (/home/jdemeyer/sage-git/src/build/cythonized/sage/structure/sage_object.c:5233) tester.assertEqual(loads(dumps(self)), self) File "/home/jdemeyer/sage-git/local/lib/python/unittest/case.py", line 515, in assertEqual assertion_func(first, second, msg=msg) File "/home/jdemeyer/sage-git/local/lib/python/unittest/case.py", line 508, in _baseAssertEqual raise self.failureException(msg) AssertionError: <type 'sage.numerical.backends.coin_backend.CoinBackend'> != <type 'sage.numerical.backends.coin_backend.CoinBackend'> ------------------------------------------------------------ Failure in _test_solve: Traceback (most recent call last): File "/home/jdemeyer/sage-git/local/lib/python2.7/site-packages/sage/misc/sage_unittest.py", line 283, in run test_method(tester = tester) File "sage/numerical/backends/generic_backend.pyx", line 697, in sage.numerical.backends.generic_backend.GenericBackend._test_solve (/home/jdemeyer/sage-git/src/build/cythonized/sage/numerical/backends/generic_backend.c:8748) with tester.assertRaises(MIPSolverException) as cm: # unbounded File "/home/jdemeyer/sage-git/local/lib/python/unittest/case.py", line 116, in __exit__ "{0} not raised".format(exc_name)) AssertionError: MIPSolverException not raised ------------------------------------------------------------ The following tests failed: _test_pickling, _test_solve
The _test_pickling
failure happens also on 64-bit systems (pickling is not supported by the MIP backends), but the _test_solve
failure only on 32-bit.
Change History (7)
comment:1 Changed 2 years ago by
- Description modified (diff)
comment:2 Changed 2 years ago by
- Description modified (diff)
comment:3 Changed 2 years ago by
- Description modified (diff)
comment:4 Changed 2 years ago by
- Cc tmonteil added
comment:5 follow-up: ↓ 6 Changed 2 years ago by
comment:6 in reply to: ↑ 5 Changed 2 years ago by
Replying to mkoeppe:
Is there a better way of declaring this than just disabling the
_test_pickling
test?
I think that's the best way because it's very explicit.
comment:7 Changed 2 years ago by
- Description modified (diff)
- Summary changed from Fix CoinBackend testsuite to Fix CoinBackend testsuite _test_solve on 32 bit
Thanks. I've updated title and description.
Note: See
TracTickets for help on using
tickets.
Pickling is not supported by the MIP backends. Is there a better way of declaring this than just disabling the
_test_pickling
test?