[Python-checkins] cpython: Issue #18174: Fix test_regrtest when Python is compiled in release mode

victor.stinner python-checkins at python.org
Fri Oct 2 20:22:17 EDT 2015


https://hg.python.org/cpython/rev/ec2ef7525fa5
changeset:   98499:ec2ef7525fa5
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Oct 03 02:21:35 2015 +0200
summary:
  Issue #18174: Fix test_regrtest when Python is compiled in release mode

files:
  Lib/test/test_regrtest.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -642,6 +642,7 @@
         output = self.run_tests('--forever', test, exitcode=1)
         self.check_executed_tests(output, [test]*3, failed=test)
 
+    @unittest.skipUnless(Py_DEBUG, 'need a debug build')
     def test_huntrleaks_fd_leak(self):
         # test --huntrleaks for file descriptor leak
         code = textwrap.dedent("""

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list