diff --git a/test/test_c_execution.py b/test/test_c_execution.py index f6db1956c21a661eb17358de970331af1d1f28ee..9d99f9b953b9cd62903c470f12417437b1a52276 100644 --- a/test/test_c_execution.py +++ b/test/test_c_execution.py @@ -200,7 +200,7 @@ def test_c_caching(): # ensure that codepy is correctly caching the code from loopy.target.c import ExecutableCTarget - class testing_logger(object): + class TestingLogger(object): def start_capture(self, loglevel=logging.DEBUG): """ Start capturing log output to a string buffer. @param newLogLevel: Optionally change the global logging level, e.g. @@ -255,7 +255,7 @@ def test_c_caching(): # compile assert np.allclose(knl(b=np.arange(10))[1], np.arange(10)) # setup test logger to check logs - tl = testing_logger() + tl = TestingLogger() tl.start_capture() # remake kernel to clear cache knl = __get_knl() @@ -265,6 +265,7 @@ def test_c_caching(): # check that we didn't recompile assert 'Kernel cache_test retrieved from cache' in logs + def test_c_execution_with_global_temporaries(): # ensure that the "host" code of a bare ExecutableCTarget with # global constant temporaries is None