diff --git a/test/python/unittest/Test.py b/test/python/unittest/Test.py index 081d9eabf7..b194f7d77e 100644 --- a/test/python/unittest/Test.py +++ b/test/python/unittest/Test.py @@ -15,8 +15,13 @@ # Define the test suite. def suite(): + test_loader = unittest.TestLoader() + env_name = "OPENPMD_PYTHON_TEST_PREFIX" + from os import environ + if env_name in environ: + test_loader.testMethodPrefix = environ[env_name] suites = [ - unittest.TestLoader().loadTestsFromTestCase(testCaseClass=APITest), + test_loader.loadTestsFromTestCase(testCaseClass=APITest), ] return unittest.TestSuite(suites)