diff --git a/test/python/registry.py b/test/python/registry.py index 1701855ba..757d04438 100644 --- a/test/python/registry.py +++ b/test/python/registry.py @@ -1,8 +1,7 @@ -import sys - import cppyy -import pyphlex +import pyphlex # noqa: F401 +__all__ = ['pyphlex'] cpp = cppyy.gbl phlex = cpp.phlex.experimental diff --git a/test/python/test_phlex.py b/test/python/test_phlex.py index daef1b420..769b44911 100644 --- a/test/python/test_phlex.py +++ b/test/python/test_phlex.py @@ -1,11 +1,11 @@ -import py -from pytest import raises class TestPYPHLEX: + @classmethod def setup_class(cls): - import pyphlex + import pyphlex # noqa: F401 + __all__ = ['pyphlex'] # For CodeQL def test01_phlex_existence(self): """Test existence of the phlex namespace"""