We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d1a675 commit 74bcc03Copy full SHA for 74bcc03
1 file changed
testsuite/MDAnalysisTests/lib/test_log.py
@@ -32,7 +32,7 @@
32
class TestConvenienceFunctions:
33
def test_start_logging(self, tmp_path):
34
mda.start_logging(tmp_path / "MDAnalysis.log")
35
- logger = logging.getLogger("MDAnalysis")
+ logger = logging.getLogger(__name__)
36
37
# Test expected handlers' presence and behavior
38
assert any(isinstance(h, logging.NullHandler) for h in logger.handlers)
@@ -51,7 +51,7 @@ def test_start_logging(self, tmp_path):
51
52
def test_stop_logging(self, tmp_path):
53
mda.lib.log.start_logging(tmp_path / "MDAnalysis.log")
54
55
mda.lib.log.stop_logging()
56
57
assert len(logger.handlers) == 0
0 commit comments