Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r88422:dcea68267797
Date: 2016-11-17 01:45 +0000
http://bitbucket.org/pypy/pypy/changeset/dcea68267797/
Log: remove debugging leftovers
diff --git a/lib-python/3/test/test_importlib/__main__.py
b/lib-python/3/test/test_importlib/__main__.py
--- a/lib-python/3/test/test_importlib/__main__.py
+++ b/lib-python/3/test/test_importlib/__main__.py
@@ -1,5 +1,4 @@
from . import load_tests
-print('loaded tests')
import unittest
unittest.main()
diff --git a/lib-python/3/unittest/main.py b/lib-python/3/unittest/main.py
--- a/lib-python/3/unittest/main.py
+++ b/lib-python/3/unittest/main.py
@@ -59,7 +59,6 @@
testRunner=None, testLoader=loader.defaultTestLoader,
exit=True, verbosity=1, failfast=None, catchbreak=None,
buffer=None, warnings=None, *, tb_locals=False):
- print('TestProgram()')
if isinstance(module, str):
self.module = __import__(module)
for part in module.split('.')[1:]:
@@ -75,7 +74,6 @@
self.verbosity = verbosity
self.buffer = buffer
self.tb_locals = tb_locals
- print('1')
if warnings is None and not sys.warnoptions:
# even if DeprecationWarnings are ignored by default
# print them anyway unless other warnings settings are
@@ -92,9 +90,7 @@
self.testRunner = testRunner
self.testLoader = testLoader
self.progName = os.path.basename(argv[0])
- print('parsing')
self.parseArgs(argv)
- print('running')
self.runTests()
def usageExit(self, msg=None):
@@ -115,7 +111,6 @@
print(MODULE_EXAMPLES % {'prog': self.progName})
def parseArgs(self, argv):
- print('in parseArgs()')
self._initArgParsers()
if self.module is None:
if len(argv) > 1 and argv[1].lower() == 'discover':
@@ -142,15 +137,12 @@
self.testNames = (self.defaultTest,)
else:
self.testNames = list(self.defaultTest)
- print('creating tests')
self.createTests()
def createTests(self):
if self.testNames is None:
- print('loading from module', self.module)
self.test = self.testLoader.loadTestsFromModule(self.module)
else:
- print('loading', self.testNames, 'from', self.module)
self.test = self.testLoader.loadTestsFromNames(self.testNames,
self.module)
@@ -236,7 +228,6 @@
self.test = loader.discover(self.start, self.pattern, self.top)
def runTests(self):
- print('in runTests()')
if self.catchbreak:
installHandler()
if self.testRunner is None:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit