From 9d338485c06973469952fbcd9793354dacb4dfce Mon Sep 17 00:00:00 2001
From: Alexandru Fikl <alexfikl@gmail.com>
Date: Wed, 19 Feb 2025 10:01:35 +0200
Subject: [PATCH] fix(tests): remove basicConfig logging setup

---
 test/test_fortran.py   | 2 --
 test/test_linalg.py    | 4 +++-
 test/test_loopy.py     | 1 -
 test/test_reduction.py | 2 --
 4 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/test/test_fortran.py b/test/test_fortran.py
index f237ec79..949f3ac1 100644
--- a/test/test_fortran.py
+++ b/test/test_fortran.py
@@ -373,8 +373,6 @@ def test_matmul(ctx_factory, buffer_inames):
             ctx.devices[0].platform.name == "Portable Computing Language"):
         pytest.skip("crashes on pocl")
 
-    logging.basicConfig(level=logging.INFO)
-
     fortran_src = """
         subroutine dgemm(m,n,ell,a,b,c)
           implicit none
diff --git a/test/test_linalg.py b/test/test_linalg.py
index 6990889b..6d56ae01 100644
--- a/test/test_linalg.py
+++ b/test/test_linalg.py
@@ -38,6 +38,9 @@ import loopy as lp
 from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa: F401
 
 
+logger = logging.getLogger(__name__)
+
+
 DEBUG_PREAMBLE = r"""
     #pragma OPENCL EXTENSION cl_amd_printf: enable
     #define MY_J (j_outer*64+j_inner_outer*16+j_inner_inner)
@@ -64,7 +67,6 @@ def check_float4(result, ref_result):
 
 
 def test_axpy(ctx_factory):
-    logging.basicConfig(level="INFO")
     ctx = ctx_factory()
 
     n = 3145182
diff --git a/test/test_loopy.py b/test/test_loopy.py
index 3412238c..8952c5ad 100644
--- a/test/test_loopy.py
+++ b/test/test_loopy.py
@@ -597,7 +597,6 @@ def test_vector_types(ctx_factory, vec_len):
 
 
 def test_conditional(ctx_factory):
-    # logging.basicConfig(level=logging.DEBUG)
     ctx = ctx_factory()
 
     knl = lp.make_kernel(
diff --git a/test/test_reduction.py b/test/test_reduction.py
index eef8ffa6..09c09a04 100644
--- a/test/test_reduction.py
+++ b/test/test_reduction.py
@@ -281,8 +281,6 @@ def test_global_mc_parallel_reduction(ctx_factory, size):
 
 
 def test_argmax(ctx_factory):
-    logging.basicConfig(level=logging.INFO)
-
     ctx = ctx_factory()
     queue = cl.CommandQueue(ctx)
     rng = np.random.default_rng(seed=42)
-- 
GitLab