Skip to content

Commit

Permalink
Skip test also if bloch_sphere_visualization extra installed
Browse files Browse the repository at this point in the history
  • Loading branch information
thangleiter committed Jul 3, 2020
1 parent ddc76bf commit 8a6bef1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def test_fancy_progressbar_not_available(self):
self.assertIs(tqdm, util._tqdm)

@pytest.mark.skipif(
'plotting' in os.environ.get('INSTALL_EXTRAS', all_extras),
any(extra in os.environ.get('INSTALL_EXTRAS', all_extras)
for extra in ['plotting', 'bloch_sphere_visualization']),
reason='Skipping tests for missing plotting extra in build with matplotlib') # noqa
def test_plotting_not_available(self):
with self.assertRaises(ModuleNotFoundError):
Expand Down

0 comments on commit 8a6bef1

Please sign in to comment.