Bug#1079740: FTBFS: test fails with AssertionError: 0 != 0.0

Paul Gevers elbrus at debian.org
Tue Aug 27 06:51:06 BST 2024


Source: optlang
Version: 1.8.2-1
Severity: serious
Tags: ftbfs
Justification: ftbfs

Hi,

Probably since version 1.13.2-1 of src:sympy, optlang FTBFS with the 
following error while running its build time tests. The same is seen in 
autopkgtest results.

=================================== FAILURES 
===================================
__________ ModelTestCase.test_objective_expression_includes_constant 
___________

self = <optlang.tests.test_glpk_exact_interface.ModelTestCase 
testMethod=test_objective_expression_includes_constant>

     def test_objective_expression_includes_constant(self):
         objective = self.model.objective
         self.model.objective = 
self.interface.Objective(objective.expression + 3)
         self.model.update()
 >       self.assertEqual((self.model.objective.expression - 
(objective.expression + 3.)).expand(), 0.)
E       AssertionError: 0 != 0.0

optlang/tests/abstract_test_cases.py:826: AssertionError
__________ ModelTestCase.test_objective_expression_includes_constant 
___________

self = <optlang.tests.test_glpk_interface.ModelTestCase 
testMethod=test_objective_expression_includes_constant>

     def test_objective_expression_includes_constant(self):
         objective = self.model.objective
         self.model.objective = 
self.interface.Objective(objective.expression + 3)
         self.model.update()
 >       self.assertEqual((self.model.objective.expression - 
(objective.expression + 3.)).expand(), 0.)
E       AssertionError: 0 != 0.0

optlang/tests/abstract_test_cases.py:826: AssertionError
__________ ModelTestCase.test_objective_expression_includes_constant 
___________

self = <optlang.tests.test_scipy_interface.ModelTestCase 
testMethod=test_objective_expression_includes_constant>

     def test_objective_expression_includes_constant(self):
         objective = self.model.objective
         self.model.objective = 
self.interface.Objective(objective.expression + 3)
         self.model.update()
 >       self.assertEqual((self.model.objective.expression - 
(objective.expression + 3.)).expand(), 0.)
E       AssertionError: 0 != 0.0

optlang/tests/abstract_test_cases.py:826: AssertionError
__________ ModelTestCase.test_objective_expression_includes_constant 
___________

self = <tests.test_glpk_exact_interface.ModelTestCase 
testMethod=test_objective_expression_includes_constant>

     def test_objective_expression_includes_constant(self):
         objective = self.model.objective
         self.model.objective = 
self.interface.Objective(objective.expression + 3)
         self.model.update()
 >       self.assertEqual((self.model.objective.expression - 
(objective.expression + 3.)).expand(), 0.)
E       AssertionError: 0 != 0.0

optlang/tests/abstract_test_cases.py:826: AssertionError
__________ ModelTestCase.test_objective_expression_includes_constant 
___________

self = <tests.test_glpk_interface.ModelTestCase 
testMethod=test_objective_expression_includes_constant>

     def test_objective_expression_includes_constant(self):
         objective = self.model.objective
         self.model.objective = 
self.interface.Objective(objective.expression + 3)
         self.model.update()
 >       self.assertEqual((self.model.objective.expression - 
(objective.expression + 3.)).expand(), 0.)
E       AssertionError: 0 != 0.0

optlang/tests/abstract_test_cases.py:826: AssertionError
__________ ModelTestCase.test_objective_expression_includes_constant 
___________

self = <tests.test_scipy_interface.ModelTestCase 
testMethod=test_objective_expression_includes_constant>

     def test_objective_expression_includes_constant(self):
         objective = self.model.objective
         self.model.objective = 
self.interface.Objective(objective.expression + 3)
         self.model.update()
 >       self.assertEqual((self.model.objective.expression - 
(objective.expression + 3.)).expand(), 0.)
E       AssertionError: 0 != 0.0

optlang/tests/abstract_test_cases.py:826: AssertionError

Paul


-- System Information:
Debian Release: trixie/sid
   APT prefers testing
   APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.10.6-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20240827/345ea69e/attachment-0001.sig>


More information about the debian-science-maintainers mailing list