1. 24 Nis, 2014 1 kayıt (commit)
  2. 15 Nis, 2014 1 kayıt (commit)
    • R David Murray's avatar
      #15916: if there are no docstrings, make empty suite, not an error. · 1976d9bf
      R David Murray yazdı
      This makes doctest work like unittest: if the test case is empty, that
      just means there are zero tests run, it's not an error.  The existing
      behavior was broken, since it only gave an error if there were *no*
      docstrings, and zero tests run if there were docstrings but none of them
      contained tests.  So this makes it self-consistent as well.
      
      Patch by Glenn Jones.
      1976d9bf
  3. 04 Nis, 2014 1 kayıt (commit)
  4. 04 Ara, 2013 2 kayıt (commit)
  5. 24 Kas, 2013 2 kayıt (commit)
  6. 25 Haz, 2013 1 kayıt (commit)
  7. 23 Haz, 2013 1 kayıt (commit)
  8. 21 Kas, 2012 1 kayıt (commit)
  9. 16 Eki, 2012 1 kayıt (commit)
  10. 10 Eyl, 2012 2 kayıt (commit)
  11. 26 May, 2012 1 kayıt (commit)
  12. 18 Ara, 2011 4 kayıt (commit)
  13. 16 Mar, 2011 2 kayıt (commit)
  14. 21 Şub, 2011 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #10990: Prevent tests from clobbering a set trace function. · 31f5929c
      Brett Cannon yazdı
      Many tests simply didn't care if they unset a pre-existing trace function. This
      made test coverage impossible. This patch fixes various tests to put back any
      pre-existing trace function. It also introduces test.support.no_tracing as a
      decorator which will temporarily unset the trace function for tests which
      simply fail otherwise.
      
      Thanks to Kristian Vlaardingerbroek for helping to find the cause of various
      trace function unsets.
      31f5929c
  15. 16 Eki, 2010 1 kayıt (commit)
  16. 14 Eki, 2010 4 kayıt (commit)
  17. 02 Agu, 2010 2 kayıt (commit)
  18. 01 Agu, 2010 5 kayıt (commit)
    • Georg Brandl's avatar
      Merged revisions 83429,83436 via svnmerge from · e64de92f
      Georg Brandl yazdı
      svn+ssh://pythondev@svn.python.org/python/branches/release27-maint
      
      ................
        r83429 | georg.brandl | 2010-08-01 21:14:56 +0200 (So, 01 Aug 2010) | 37 lines
      
        Merged revisions 83352,83356-83358,83362,83366,83368-83369 via svnmerge from
        svn+ssh://pythondev@svn.python.org/python/branches/py3k
      
        ........
          r83352 | georg.brandl | 2010-07-31 20:11:07 +0200 (Sa, 31 Jul 2010) | 1 line
      
          #9440: Remove borderline test case that fails based on unpredictable conditions such as compiler flags.
        ........
          r83356 | georg.brandl | 2010-07-31 21:29:15 +0200 (Sa, 31 Jul 2010) | 1 line
      
          Remove trailing whitespace.
        ........
          r83357 | georg.brandl | 2010-07-31 21:59:55 +0200 (Sa, 31 Jul 2010) | 1 line
      
          #5778: document that sys.version can contain a newline.
        ........
          r83358 | georg.brandl | 2010-07-31 22:05:31 +0200 (Sa, 31 Jul 2010) | 1 line
      
          #9442: do not document a specific format for sys.version; rather refer to version_info and the platform module.
        ........
          r83362 | georg.brandl | 2010-07-31 23:12:15 +0200 (Sa, 31 Jul 2010) | 1 line
      
          #8910: add a file explaining why Lib/test/data is there.
        ........
          r83366 | georg.brandl | 2010-07-31 23:26:40 +0200 (Sa, 31 Jul 2010) | 1 line
      
          There always is a False and True now.
        ........
          r83368 | georg.brandl | 2010-07-31 23:40:15 +0200 (Sa, 31 Jul 2010) | 1 line
      
          #7909: the prefixes \\.\ and \\?\ indicate special Windows paths, do not try to manipulate them.  See http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx for details.
        ........
          r83369 | georg.brandl | 2010-07-31 23:41:42 +0200 (Sa, 31 Jul 2010) | 1 line
      
          Fix "Berkeley" name.
        ........
      ................
        r83436 | georg.brandl | 2010-08-01 21:33:15 +0200 (So, 01 Aug 2010) | 42 lines
      
        Merged revisions 83259,83261,83264-83265,83268-83269,83271-83272,83281 via svnmerge from
        svn+ssh://pythondev@svn.python.org/python/branches/py3k
      
        ........
          r83259 | georg.brandl | 2010-07-30 09:03:39 +0200 (Fr, 30 Jul 2010) | 1 line
      
          Clarification.
        ........
          r83261 | georg.brandl | 2010-07-30 09:21:26 +0200 (Fr, 30 Jul 2010) | 1 line
      
          #9230: allow Pdb.checkline() to be called without a current frame, for setting breakpoints before starting debugging.
        ........
          r83264 | georg.brandl | 2010-07-30 10:45:26 +0200 (Fr, 30 Jul 2010) | 1 line
      
          Document the "jump" command in pdb.__doc__, and add a version tag for "until X".
        ........
          r83265 | georg.brandl | 2010-07-30 10:54:49 +0200 (Fr, 30 Jul 2010) | 1 line
      
          #8015: fix crash when entering an empty line for breakpoint commands.  Also restore environment properly when an exception occurs during the definition of commands.
        ........
          r83268 | georg.brandl | 2010-07-30 11:23:23 +0200 (Fr, 30 Jul 2010) | 2 lines
      
          Issue #8048: Prevent doctests from failing when sys.displayhook has
          been reassigned.
        ........
          r83269 | georg.brandl | 2010-07-30 11:43:00 +0200 (Fr, 30 Jul 2010) | 1 line
      
          #6719: In pdb, do not stop somewhere in the encodings machinery if the source file to be debugged is in a non-builtin encoding.
        ........
          r83271 | georg.brandl | 2010-07-30 11:59:28 +0200 (Fr, 30 Jul 2010) | 1 line
      
          #5727: Restore the ability to use readline when calling into pdb in doctests.
        ........
          r83272 | georg.brandl | 2010-07-30 12:29:19 +0200 (Fr, 30 Jul 2010) | 1 line
      
          #5294: Fix the behavior of pdb "continue" command when called in the top-level debugged frame.
        ........
          r83281 | georg.brandl | 2010-07-30 15:36:43 +0200 (Fr, 30 Jul 2010) | 1 line
      
          Add myself for pdb.
        ........
      ................
      e64de92f
    • Georg Brandl's avatar
      Merged revisions 83392,83426 via svnmerge from · 03c1cff5
      Georg Brandl yazdı
      svn+ssh://pythondev@svn.python.org/python/branches/release27-maint
      
      ................
        r83392 | georg.brandl | 2010-08-01 10:22:05 +0200 (So, 01 Aug 2010) | 1 line
      
        #8471: reset _SpoofOut.buf to an empty string when truncating; if Unicode had been output previously, it had been coerced to a Unicode string, potentially making subsequent prints behave differently or raise UnicodeErrors.
      ................
        r83426 | georg.brandl | 2010-08-01 21:06:51 +0200 (So, 01 Aug 2010) | 27 lines
      
        Merged revisions 83370,83372-83374,83384 via svnmerge from
        svn+ssh://pythondev@svn.python.org/python/branches/py3k
      
        ........
          r83370 | georg.brandl | 2010-07-31 23:51:48 +0200 (Sa, 31 Jul 2010) | 5 lines
      
          #8198: the Helper class should not save the stdin and stdout objects
          at import time, rather by default use the current streams like the
          other APIs that output help.
        ........
          r83372 | georg.brandl | 2010-08-01 00:05:54 +0200 (So, 01 Aug 2010) | 1 line
      
          #4007: remove *.a and *.so.X.Y files in "make clean".
        ........
          r83373 | georg.brandl | 2010-08-01 00:11:11 +0200 (So, 01 Aug 2010) | 1 line
      
          #5147: revert accidental indentation of header constant for MozillaCookieJar.
        ........
          r83374 | georg.brandl | 2010-08-01 00:32:52 +0200 (So, 01 Aug 2010) | 1 line
      
          #5146: handle UID THREAD command correctly.
        ........
          r83384 | georg.brandl | 2010-08-01 08:32:55 +0200 (So, 01 Aug 2010) | 1 line
      
          Build properties using lambdas.  This makes test_pyclbr pass again, because it does not think that input and output are methods anymore.
        ........
      ................
      03c1cff5
    • Georg Brandl's avatar
      Merged revisions 83259,83261,83264-83265,83268-83269,83271-83272,83281 via svnmerge from · 469d3e78
      Georg Brandl yazdı
      svn+ssh://svn.python.org/python/branches/py3k
      
      ........
        r83259 | georg.brandl | 2010-07-30 09:03:39 +0200 (Fr, 30 Jul 2010) | 1 line
      
        Clarification.
      ........
        r83261 | georg.brandl | 2010-07-30 09:21:26 +0200 (Fr, 30 Jul 2010) | 1 line
      
        #9230: allow Pdb.checkline() to be called without a current frame, for setting breakpoints before starting debugging.
      ........
        r83264 | georg.brandl | 2010-07-30 10:45:26 +0200 (Fr, 30 Jul 2010) | 1 line
      
        Document the "jump" command in pdb.__doc__, and add a version tag for "until X".
      ........
        r83265 | georg.brandl | 2010-07-30 10:54:49 +0200 (Fr, 30 Jul 2010) | 1 line
      
        #8015: fix crash when entering an empty line for breakpoint commands.  Also restore environment properly when an exception occurs during the definition of commands.
      ........
        r83268 | georg.brandl | 2010-07-30 11:23:23 +0200 (Fr, 30 Jul 2010) | 2 lines
      
        Issue #8048: Prevent doctests from failing when sys.displayhook has
        been reassigned.
      ........
        r83269 | georg.brandl | 2010-07-30 11:43:00 +0200 (Fr, 30 Jul 2010) | 1 line
      
        #6719: In pdb, do not stop somewhere in the encodings machinery if the source file to be debugged is in a non-builtin encoding.
      ........
        r83271 | georg.brandl | 2010-07-30 11:59:28 +0200 (Fr, 30 Jul 2010) | 1 line
      
        #5727: Restore the ability to use readline when calling into pdb in doctests.
      ........
        r83272 | georg.brandl | 2010-07-30 12:29:19 +0200 (Fr, 30 Jul 2010) | 1 line
      
        #5294: Fix the behavior of pdb "continue" command when called in the top-level debugged frame.
      ........
        r83281 | georg.brandl | 2010-07-30 15:36:43 +0200 (Fr, 30 Jul 2010) | 1 line
      
        Add myself for pdb.
      ........
      469d3e78
    • Georg Brandl's avatar
      Merged revisions 83259,83261,83264-83265,83268-83269,83271-83272,83281 via svnmerge from · 50775990
      Georg Brandl yazdı
      svn+ssh://pythondev@svn.python.org/python/branches/py3k
      
      ........
        r83259 | georg.brandl | 2010-07-30 09:03:39 +0200 (Fr, 30 Jul 2010) | 1 line
      
        Clarification.
      ........
        r83261 | georg.brandl | 2010-07-30 09:21:26 +0200 (Fr, 30 Jul 2010) | 1 line
      
        #9230: allow Pdb.checkline() to be called without a current frame, for setting breakpoints before starting debugging.
      ........
        r83264 | georg.brandl | 2010-07-30 10:45:26 +0200 (Fr, 30 Jul 2010) | 1 line
      
        Document the "jump" command in pdb.__doc__, and add a version tag for "until X".
      ........
        r83265 | georg.brandl | 2010-07-30 10:54:49 +0200 (Fr, 30 Jul 2010) | 1 line
      
        #8015: fix crash when entering an empty line for breakpoint commands.  Also restore environment properly when an exception occurs during the definition of commands.
      ........
        r83268 | georg.brandl | 2010-07-30 11:23:23 +0200 (Fr, 30 Jul 2010) | 2 lines
      
        Issue #8048: Prevent doctests from failing when sys.displayhook has
        been reassigned.
      ........
        r83269 | georg.brandl | 2010-07-30 11:43:00 +0200 (Fr, 30 Jul 2010) | 1 line
      
        #6719: In pdb, do not stop somewhere in the encodings machinery if the source file to be debugged is in a non-builtin encoding.
      ........
        r83271 | georg.brandl | 2010-07-30 11:59:28 +0200 (Fr, 30 Jul 2010) | 1 line
      
        #5727: Restore the ability to use readline when calling into pdb in doctests.
      ........
        r83272 | georg.brandl | 2010-07-30 12:29:19 +0200 (Fr, 30 Jul 2010) | 1 line
      
        #5294: Fix the behavior of pdb "continue" command when called in the top-level debugged frame.
      ........
        r83281 | georg.brandl | 2010-07-30 15:36:43 +0200 (Fr, 30 Jul 2010) | 1 line
      
        Add myself for pdb.
      ........
      50775990
    • Georg Brandl's avatar
      #8471: reset _SpoofOut.buf to an empty string when truncating; if Unicode had… · 1f05e2e9
      Georg Brandl yazdı
      #8471: reset _SpoofOut.buf to an empty string when truncating; if Unicode had been output previously, it had been coerced to a Unicode string, potentially making subsequent prints behave differently or raise UnicodeErrors.
      1f05e2e9
  19. 30 Tem, 2010 2 kayıt (commit)
  20. 12 Haz, 2010 1 kayıt (commit)
  21. 28 Nis, 2010 2 kayıt (commit)
    • Victor Stinner's avatar
      Merged revisions 80552-80556,80564-80566,80568-80571 via svnmerge from · 45df8205
      Victor Stinner yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r80552 | victor.stinner | 2010-04-27 23:46:03 +0200 (mar., 27 avril 2010) | 3 lines
      
        Issue #7449, part 1: fix test_support.py for Python compiled without thread
      ........
        r80553 | victor.stinner | 2010-04-27 23:47:01 +0200 (mar., 27 avril 2010) | 1 line
      
        Issue #7449, part 2: regrtest.py -j option requires thread support
      ........
        r80554 | victor.stinner | 2010-04-27 23:51:26 +0200 (mar., 27 avril 2010) | 9 lines
      
        Issue #7449 part 3, test_doctest: import trace module in test_coverage()
      
        Import trace module fail if the threading module is missing. test_coverage() is
        only used if test_doctest.py is used with the -c option. This commit allows to
        execute the test suite without thread support.
      
        Move "import trace" in test_coverage() and use
        test_support.import_module('trace').
      ........
        r80555 | victor.stinner | 2010-04-27 23:56:26 +0200 (mar., 27 avril 2010) | 6 lines
      
        Issue #7449, part 4: skip test_multiprocessing if thread support is disabled
      
        import threading after _multiprocessing to raise a more revelant error message:
        "No module named _multiprocessing". _multiprocessing is not compiled without
        thread support.
      ........
        r80556 | victor.stinner | 2010-04-28 00:01:24 +0200 (mer., 28 avril 2010) | 8 lines
      
        Issue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.py
      
         * Split Test.test_open() in 2 functions: test_open() and test_thread_open()
         * Skip test_open() and test_thread_open() if we are unable to find the C
           library
         * Skip test_thread_open() if thread support is disabled
         * Use unittest.skipUnless(os.name == "nt", ...) on test_GetLastError()
      ........
        r80564 | victor.stinner | 2010-04-28 00:59:35 +0200 (mer., 28 avril 2010) | 4 lines
      
        Issue #7449, part 6: fix test_hashlib for missing threading module
      
        Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing().
      ........
        r80565 | victor.stinner | 2010-04-28 01:01:29 +0200 (mer., 28 avril 2010) | 6 lines
      
        Issue #7449, part 7: simplify threading detection in test_capi
      
         * Skip TestPendingCalls if threading module is missing
         * Test if threading module is present or not, instead of test the presence of
           _testcapi._test_thread_state
      ........
        r80566 | victor.stinner | 2010-04-28 01:03:16 +0200 (mer., 28 avril 2010) | 4 lines
      
        Issue #7449, part 8: don't skip the whole test_asynchat if threading is missing
      
        TestFifo can be executed without the threading module
      ........
        r80568 | victor.stinner | 2010-04-28 01:14:58 +0200 (mer., 28 avril 2010) | 6 lines
      
        Issue #7449, part 9: fix test_xmlrpclib for missing threading module
      
         * Skip testcases using threads if threading module is missing
         * Use "http://" instead of URL in ServerProxyTestCase if threading is missing
           because URL is not set in this case
      ........
        r80569 | victor.stinner | 2010-04-28 01:33:58 +0200 (mer., 28 avril 2010) | 6 lines
      
        Partial revert of r80556 (Issue #7449, part 5, fix ctypes test)
      
        Rewrite r80556: the thread test have to be executed just after the test on
        libc_open() and so the test cannot be splitted in two functions (without
        duplicating code, and I don't want to duplicate code).
      ........
        r80570 | victor.stinner | 2010-04-28 01:51:16 +0200 (mer., 28 avril 2010) | 8 lines
      
        Issue #7449, part 10: test_cmd imports trace module using test_support.import_module()
      
        Use test_support.import_module() instead of import to raise a SkipTest
        exception if the import fail. Import trace fails if the threading module is
        missing.
      
        See also part 3: test_doctest: import trace module in test_coverage().
      ........
        r80571 | victor.stinner | 2010-04-28 01:55:59 +0200 (mer., 28 avril 2010) | 6 lines
      
        Issue #7449, last part (11): fix many tests if thread support is disabled
      
         * Use try/except ImportError or test_support.import_module() to import thread
           and threading modules
         * Add @unittest.skipUnless(threading, ...) to testcases using threads
      ........
      45df8205
    • Nick Coghlan's avatar
      Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module… · dfb45dfd
      Nick Coghlan yazdı
      Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module containing the exception under test (original patch by Lennart Regebro)
      dfb45dfd
  22. 27 Nis, 2010 1 kayıt (commit)
  23. 02 Nis, 2010 1 kayıt (commit)