Skip to content

Commit e4b4499

Browse files
committed
Fixed display of added setup.py commands
Details: * Fixed that the added setup.py commands (test, leaktest, installtest) were not displayed. They are now displayed at verbosity level 1 (using '-v'). Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
1 parent bfe240d commit e4b4499

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

docs/changes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Released: not yet
3434

3535
* Fixed error when installing virtualenv in install test on Python 2.7.
3636

37+
* Fixed that the added setup.py commands (test, leaktest, installtest) were not
38+
displayed. They are now displayed at verbosity level 1 (using '-v').
39+
3740
**Enhancements:**
3841

3942
* Enhanced test matrix on GitHub Actions to always include Python 2.7 and

setup.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
import os
88
import io
99
import re
10-
# setuptools needs to be imported before distutils in order to work.
1110
import setuptools
12-
from distutils import log # pylint: disable=wrong-import-order
1311

1412

1513
def get_version(version_file):
@@ -116,12 +114,10 @@ def run(self):
116114
args.extend(self.test_dirs)
117115

118116
if self.dry_run:
119-
self.announce("Dry-run: pytest {}".format(' '.join(args)),
120-
level=log.INFO)
117+
self.announce("Dry-run: pytest {}".format(' '.join(args)), level=1)
121118
return 0
122119

123-
self.announce("pytest {}".format(' '.join(args)),
124-
level=log.INFO)
120+
self.announce("pytest {}".format(' '.join(args)), level=1)
125121
rc = pytest.main(args)
126122
return rc
127123

0 commit comments

Comments
 (0)