Closed dpad closed 4 months ago
Ok, so this bug is kind of bizarre. It might be due to some global state of some kind.
pytest src
pytest src/tests/test_scenarioAttitudeConstrainedManeuver.py
pytest src/tests -k "scenarioAttitudeConstrainedManeuver"
I've potentially tracked down the issue to dataFileToViz
. Basically, commenting out the from Basilisk.simulation import dataFileToViz
in scenarioDataToViz.py
allows the pytest src/tests -k "scenarioAttitudeConstrainedManeuver"
to pass even with SWIG 4.2.0.
This is a very strange bug, but maybe this helps someone identify the issue.
This duplicates #632
The bug is actually even more mysterious than at first glance. The bug embeds itself into the python cache, such that in certain scenarios, once you run the test in a way that fails even a way that works will fail until you remove the python cache, and vice versa.
Closing this in favour of #632 , thanks @sassy-asjp !
Describe the bug When SWIG 4.2.0+ is used to build Basilisk, the test-case below fails when run as
pytest src/tests -k "scenarioAttitudeConstrainedManeuver"
:This test case passes when Basilisk is built with SWIG 4.0.2 instead.
See my additional comments below, it only occurs under specific circumstances. This bug is probably fairly low priority.
Desktop (please complete the following information):
develop
(2.3.25)