Skip to content

Commit 74bcc03

Browse files
committed
Updated tests
1 parent 6d1a675 commit 74bcc03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testsuite/MDAnalysisTests/lib/test_log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
class TestConvenienceFunctions:
3333
def test_start_logging(self, tmp_path):
3434
mda.start_logging(tmp_path / "MDAnalysis.log")
35-
logger = logging.getLogger("MDAnalysis")
35+
logger = logging.getLogger(__name__)
3636

3737
# Test expected handlers' presence and behavior
3838
assert any(isinstance(h, logging.NullHandler) for h in logger.handlers)
@@ -51,7 +51,7 @@ def test_start_logging(self, tmp_path):
5151

5252
def test_stop_logging(self, tmp_path):
5353
mda.lib.log.start_logging(tmp_path / "MDAnalysis.log")
54-
logger = logging.getLogger("MDAnalysis")
54+
logger = logging.getLogger(__name__)
5555
mda.lib.log.stop_logging()
5656

5757
assert len(logger.handlers) == 0

0 commit comments

Comments
 (0)