Skip to content

Commit

Permalink
Bind to 'distutils.log' late in case the loader has changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 26, 2021
1 parent 485fa84 commit 34defd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _distutils_hack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def enabled():
def ensure_local_distutils():
clear_distutils()

# ensure the DistutilsMetaFinder is in place and
# With the DistutilsMetaFinder in place,
# perform an import to cause distutils to be
# loaded from setuptools._distutils. Ref #2906.
add_shim()
Expand Down
5 changes: 2 additions & 3 deletions setuptools/tests/test_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from distutils import log

import pytest
from jaraco import path

Expand All @@ -13,7 +11,8 @@
def quiet_log():
# Running some of the other tests will automatically
# change the log level to info, messing our output.
log.set_verbosity(0)
import distutils.log
distutils.log.set_verbosity(0)


@pytest.mark.usefixtures('tmpdir_cwd', 'quiet_log')
Expand Down

0 comments on commit 34defd4

Please sign in to comment.