From da998376277ebb14383ba955fc0f2abf8c4463f3 Mon Sep 17 00:00:00 2001 From: Nick <nicholas.curtis@uconn.edu> Date: Tue, 12 Dec 2017 14:21:28 -0500 Subject: [PATCH] flake fix --- test/test_c_execution.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_c_execution.py b/test/test_c_execution.py index f6db1956c..9d99f9b95 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 -- GitLab