Commit Graph

15544 Commits

Author SHA1 Message Date
Victor Stinner 95affc4449 Issue #1583863: An unicode subclass can now override the __str__ method 2010-03-22 12:24:37 +00:00
Michael Foord eef159bd17 Correct usage message displayed for python -m unittest -h 2010-03-22 02:49:08 +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
Antoine Pitrou 448da71807 Issue #3890: Fix recv() and recv_into() on non-blocking SSL sockets. 2010-03-21 19:33:38 +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 cf82fa6f91 Issue #8179: Fix macpath.realpath() on a non-existing path. 2010-03-21 12:27:20 +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 4a0f8b89f6 Silence more py3k warnings in unittest.case. 2010-03-21 10:50:44 +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 8cb253f8d6 Change order of arguments in a unittest function. 2010-03-21 00:55:58 +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
Michael Foord 98e7b7644b Issue 7832: renaming unittest.TestCase.assertSameElements to assertItemsEqual and changing behaviour 2010-03-20 03:00:34 +00:00
Florent Xicluna 2e6d2622bd #8178 Cleanup the threads after test_thread.TestForkInThread. 2010-03-20 00:17:46 +00:00
Florent Xicluna bc27c6a5aa Various tests cleanup: check_warnings/check_py3k_warnings, unittest.assert* and setUp/tearDown. 2010-03-19 18:34:55 +00:00
Matthias Klose e9fbf2b943 - Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument. 2010-03-19 14:45:06 +00:00
Benjamin Peterson f4fd0bf7c1 keep DeprecationWarning from failing test 2010-03-19 01:06:33 +00:00
Benjamin Peterson 52d4aeac86 make compiler's py3k warning a full deprecation warning #6837 2010-03-18 23:12:43 +00:00
Benjamin Peterson e30b3fa17a these lines can now be dispensed with 2010-03-18 22:44:54 +00:00
Collin Winter 001a3952c9 Add support for weak references to code objects. This will be used by an optimization in the incoming Python 3 JIT.
Patch by Reid Kleckner!
2010-03-18 21:54:01 +00:00
Florent Xicluna 2e0a53fdf6 Issue #8024: Update the Unicode database to 5.2 2010-03-18 21:50:06 +00:00
Florent Xicluna 735885428d #8155: Preserve backward compatibility for test_support.check_warnings(). Add regression tests. 2010-03-18 19:51:47 +00:00
Senthil Kumaran f3e9b2a996 Fix for Issue8135 - urllib.unquote to support mixed percent escapes 2010-03-18 12:14:15 +00:00
Collin Winter 43fe03a206 Make test_pwd more stable in the face of unusual LDAP/NIS/Kerberos deployments (the old test was flaky on Google buildslaves). 2010-03-18 00:10:34 +00:00
Antoine Pitrou d7b731d160 Issue #8104: socket.recv_into() and socket.recvfrom_into() now support
writing into objects supporting the new buffer API, for example bytearrays
or memoryviews.
2010-03-17 22:45:39 +00:00
Collin Winter 2227251a4e Fix a race condition in test_asynchat uncovered by the Unladen Swallow JIT. 2010-03-17 22:36:26 +00:00
Benjamin Peterson 0dee9c1b5c prevent lambda functions from having docstrings #8164 2010-03-17 20:41:42 +00:00
Florent Xicluna 78c1871d21 Fix and check cgi module deprecation warnings. Revert an unwanted rename in test_import. 2010-03-17 20:05:11 +00:00
Florent Xicluna 945a8ba635 Cleanup some test cases using check_warnings and check_py3k_warnings. 2010-03-17 19:15:56 +00:00
Florent Xicluna 2b73c21bed Cleanup in test_import and test_coding. 2010-03-17 19:05:04 +00:00
Collin Winter 786431282b Avoid hardcoding refcounts in tests. 2010-03-17 17:36:16 +00:00
Vinay Sajip 2060e42206 Issue #8162: logging: Clarified docstring and documentation for disable function. 2010-03-17 15:05:57 +00:00
Ezio Melotti 187f93d986 Use "x in y" instead of y.find(x) != -1. 2010-03-17 14:22:34 +00:00
Ezio Melotti d80b4bfd0b #7092: silence some more py3k warnings. 2010-03-17 13:52:48 +00:00
Collin Winter 8b3f1ce591 Delete unused import. 2010-03-17 03:04:01 +00:00
Collin Winter 89b4f13024 Style cleanup in test_import. 2010-03-17 02:40:12 +00:00
Collin Winter ac1d93167c Fix a trivial class of (hypothetical, future) false-positive refleaks, discovered by an optimization in Unladen Swallow's past (which will become CPython's future). 2010-03-17 02:02:30 +00:00