Commit Graph

6679 Commits

Author SHA1 Message Date
Antoine Pitrou 8f66efe253 Fix small error in r79502 2010-03-30 18:58:22 +00:00
Antoine Pitrou 6032c25063 Issue #8248: Add some tests for the bool type. Patch by Gregory Nofi. 2010-03-30 18:49:45 +00:00
Benjamin Peterson 7e213255ce add inspect.getcallargs, which binds function arguments like a normal call #3135
Patch by George Sakkis
2010-03-30 17:58:13 +00:00
Florent Xicluna 75c6676916 #8263: Now regrtest.py will report a failure if it receives a KeyboardInterrupt (SIGINT). 2010-03-30 16:31:14 +00:00
Florent Xicluna 22b243809e #7643: Unicode codepoints VT (0x0B) and FF (0x0C) are linebreaks according to Unicode Standard Annex #14. 2010-03-30 08:24:06 +00:00
Michael Foord e6410c536c Backport of weakref.WeakSet and tests from Python 3. 2010-03-29 20:04:23 +00:00
Michael Foord b35ecf4775 Rename the unittest test_suite function to not clash with a test module name (unittest.test.test_suite is now unambiguous). 2010-03-27 13:42:34 +00:00
Mark Dickinson 71b7fac07b Make Fraction to complex comparisons with <=, <, >= or > raise TypeError. 2010-03-27 11:09:29 +00:00
Florent Xicluna 355adc5a45 Ensure that the failed or unexpected tests are sorted before printing. 2010-03-26 19:32:44 +00:00
Benjamin Peterson c7024e7fd6 reorder imports 2010-03-26 13:53:32 +00:00
Michael Foord 35b3792ed3 Turn unittest tests into a package 2010-03-25 23:56:33 +00:00
Florent Xicluna fd37dd46e8 Fix test_unittest and test_warnings when running "python -Werror -m test.regrtest" 2010-03-25 20:39:10 +00:00
Florent Xicluna 8aa5a581d3 #8207: Fix test_pep277 on OS X 2010-03-25 20:33:49 +00:00
Larry Hastings 402b73fb8d Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
2010-03-25 00:54:54 +00:00
Steven Bethard 2ec1f27716 Replace license with simple attribution. 2010-03-24 23:03:24 +00:00
Antoine Pitrou 2c6799ab8c Revert r79384 (the fix failed). 2010-03-24 22:12:15 +00:00
Antoine Pitrou 914bdbb495 Trying to fix #8108. Will watch the buildbot(s). 2010-03-24 21:55:12 +00:00
Florent Xicluna 36b9fbb803 Skip tests which depend on multiprocessing.sharedctypes, if _ctypes is not available. 2010-03-24 19:33:25 +00:00
Florent Xicluna 27e024023c Skip test_ascii_formatd if _ctypes is not available (BSD, ...).
Previous change was incomplete (r79334).
2010-03-24 17:32:58 +00:00
Florent Xicluna 3c919cf140 The SIGINT signal may happen earlier, during site.py initialization. 2010-03-23 19:19:16 +00:00
Florent Xicluna 446ff14827 The standard error should be empty when the signal is killed, except on SIGINT. 2010-03-23 15:05:30 +00:00
Florent Xicluna fc4d6d7763 Silence test_subprocess. 2010-03-23 14:36:45 +00:00
Florent Xicluna 875bdf731c Skip test_format_deprecation if _ctypes is not available. Add a filter to the warning check. 2010-03-23 11:07:54 +00:00
Florent Xicluna 0805e6eed9 #7668: Fix test_httpservers failure when sys.executable contains non-ASCII bytes. 2010-03-22 17:18:18 +00:00
R. David Murray c9d1a7845b Issue #7860: platform.uname now reports the correct 'machine' type
when Python is running in WOW64 mode on 64 bit Windows.  Patch by
Brian Curtin.
2010-03-22 15:55:09 +00:00
Vinay Sajip 804899b4ab logging: Added getChild utility method to Logger and added isEnabledFor method to LoggerAdapter. 2010-03-22 15:29:01 +00:00
Florent Xicluna f08a0176a7 Get rid of buffer() in test_ctypes: backport the 3.x tests. 2010-03-22 15:02:46 +00:00
Antoine Pitrou 52093b8e57 Fix an occasional test_ftplib failure, following r79226. 2010-03-22 14:41:48 +00:00
Vinay Sajip 31e928eb3c Issue #8201: logging: Handle config errors when non-ASCII and Unicode logger names exist at the same time. 2010-03-22 13:02:28 +00:00
Victor Stinner c7790ed163 Fix the NEWS about my last commit: an unicode subclass can now override the
__unicode__ method (and not the __str__ method).

Simplify also the testcase.
2010-03-22 12:36:28 +00:00
Victor Stinner 95affc4449 Issue #1583863: An unicode subclass can now override the __str__ method 2010-03-22 12:24:37 +00:00
Michael Foord 0ce167277a expected failure should not trigger failfast behavior in unittest. 2010-03-22 01:56:54 +00:00
Michael Foord 49899690a8 Removing Python 2.3 compatibility code from unittest. 2010-03-22 01:41:11 +00:00
Michael Foord db003cb3d1 Fix failing test committed by accident. 2010-03-22 01:02:23 +00:00
Michael Foord 1b9e95339d -f/--failfast command line option for unittest. Issue 8074. Documentation still needed. Plus minor change to test_unittest to allow it to be run with python -m test.unittest 2010-03-22 01:01:34 +00:00
Michael Foord b1aa30f94d Issue 7815. __unittest in module globals trims frames from reported stacktraces in unittest. 2010-03-22 00:06:30 +00:00
Benjamin Peterson bb9d726357 take into account keyword arguments when passing too many args 2010-03-21 20:30:30 +00:00
Benjamin Peterson 965458931f improve error message from passing inadequate number of keyword arguments #6474
Note this removes the "non-keyword" or "keyword" phrases from these messages.
2010-03-21 20:21:00 +00:00
Benjamin Peterson 54bc22e9f3 don't write duplicate tests 2010-03-21 19:56:37 +00:00
Benjamin Peterson 52b32b6d6a fix import 2010-03-21 19:54:56 +00:00
Florent Xicluna 77a8849505 #8180: Fix test_pep277 on OS X and add more tests for special Unicode normalization cases. 2010-03-21 18:00:38 +00:00
Benjamin Peterson e39b2ec6ca rewrite a bit 2010-03-21 17:34:54 +00:00
Florent Xicluna b88fbf4fef Use assertRaises and add a specific warning filter. 2010-03-21 11:58:11 +00:00
Florent Xicluna 3f5d146323 No more deprecation warnings for distutils.sysconfig, following r78666.
But when the "dl" module is available, it gives a py3k deprecation warning.
2010-03-21 11:50:17 +00:00
Florent Xicluna af61719ec3 Silence some py3k SyntaxWarning using check_py3k_warnings() with "exec" statements. 2010-03-21 11:03:21 +00:00
Florent Xicluna 8f43cec41b Fix py3k warnings in test_decimal, using unittest.assertItemsEqual. 2010-03-21 10:51:40 +00:00
Florent Xicluna 0762788081 #7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper. 2010-03-21 01:14:24 +00:00
Michael Foord 73dbe04619 A faulty load_tests in a test module no longer halts test discovery. A placeholder test, that reports the failure, is created instead. 2010-03-21 00:53:39 +00:00
Florent Xicluna fc5f6a7f40 Cleanup test_tarfile, and use check_warnings. 2010-03-20 22:26:42 +00:00
Florent Xicluna db4a321fea Cleanup test_struct using check_warnings. 2010-03-20 22:21:02 +00:00