From 664ae00cdc153e99cbe8aaa5204429565e96d319 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Wed, 26 Apr 2023 14:23:44 +0100 Subject: [PATCH] test to check matplotlib is deferred import --- tests/regression_tests/python_import/test.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/regression_tests/python_import/test.py diff --git a/tests/regression_tests/python_import/test.py b/tests/regression_tests/python_import/test.py new file mode 100644 index 000000000..d24a0cae1 --- /dev/null +++ b/tests/regression_tests/python_import/test.py @@ -0,0 +1,7 @@ +import sys +import openmc + + +def test_matplotlib_presence(): + """Checks that remains a deferred import""" + assert 'matplotlib.pyplot' not in sys.modules