Florent Xicluna
c049fca0da
Fix an oversight in r83294. unquote() should reject bytes. Issue #9301 .
2010-07-31 08:56:55 +00:00
Georg Brandl
604ef370b3
Make urllib tests pass for now. Will figure out what the correct semantics should be after release.
2010-07-31 08:20:02 +00:00
Georg Brandl
e1e8df1082
Fix pdb test failures on the buildbots.
2010-07-31 08:14:16 +00:00
Senthil Kumaran
d496c4c936
Fix issue9301 - handle unquote({}) kind of case.
2010-07-30 19:34:36 +00:00
Georg Brandl
0a9c3e91dc
Show the traceback line numbers as well as the current line numbers if an exception is being debugged. Courtesy of pdb++ by Antonio Cuni. Also document -> and >> markers for "list".
2010-07-30 18:46:38 +00:00
Georg Brandl
cdf66a9a7c
Test that "source" with nonexisting things works as expected.
2010-07-30 18:15:16 +00:00
Georg Brandl
e59ca2afe3
Add "longlist" and "source" commands, ideas borrowed from pdb++ by Antonio Cuni.
2010-07-30 17:04:28 +00:00
Georg Brandl
0d08962659
Several enhancements to pdb and its test suite.
...
* added basic test for basic commands
* removed duplication of command docs, and moved them to their implementation
* unified and useful display of exceptions
* output messages and errors using overridable methods (also fixes #1503502 )
2010-07-30 16:00:46 +00:00
Georg Brandl
9d624d26d1
pdb now has its own tests.
2010-07-30 15:33:52 +00:00
Georg Brandl
6cccb865d1
#7964 followup: add test case to ensure issue remains fixed.
2010-07-30 14:16:43 +00:00
Georg Brandl
7410dd11ef
#809887 : improve pdb feedback for breakpoint-related actions. Also add a functional test for these commands.
2010-07-30 12:01:20 +00:00
Georg Brandl
3f94089a77
#5294 : Fix the behavior of pdb "continue" command when called in the top-level debugged frame.
2010-07-30 10:29:19 +00:00
Georg Brandl
25fbb891d8
Issue #8048 : Prevent doctests from failing when sys.displayhook has
...
been reassigned.
2010-07-30 09:23:23 +00:00
Georg Brandl
46b9afc862
#1472251 : remove addition of "\n" to code given to pdb.run[eval](), the bug in exec() that made this necessary has been fixed. Also document that you can give code objects to run() and runeval(), and add some tests to test_pdb.
2010-07-30 09:14:20 +00:00
Georg Brandl
0a0fc07d37
#4108 : the first default entry (User-agent: *) wins.
2010-07-29 17:55:01 +00:00
Georg Brandl
6d23c44ee5
Fix #9412 : make list of messages an instance attribute instead of class attribute.
2010-07-29 13:19:42 +00:00
Georg Brandl
8dcaa7396f
#9411 : allow selecting an encoding for configparser files. Also adds a new test config file to test special cases.
2010-07-29 12:17:40 +00:00
Victor Stinner
96f0de9004
Update test_os.py according to my last changes on _Environ.__repr__()
2010-07-29 00:29:00 +00:00
Georg Brandl
aa5b33311a
Add missing file.
2010-07-28 17:37:27 +00:00
Florent Xicluna
02ea12b291
Syntax cleanup.
2010-07-28 16:39:41 +00:00
Senthil Kumaran
3f8ab965f7
Fix Issue6325 - robotparse to honor urls with query strings.
2010-07-28 16:27:56 +00:00
Georg Brandl
96a60ae90c
#1682942 : add some ConfigParser features: alternate delimiters, alternate comments, empty lines in values. Also enhance the docs with more examples and mention SafeConfigParser before ConfigParser. Patch by Lukas Langa, review by myself, Eric and Ezio.
2010-07-28 13:13:46 +00:00
Georg Brandl
cbb0ae4a42
#9354 : Provide getsockopt() in asyncore file_wrapper(). Patch by Lukas Langa.
2010-07-28 08:19:35 +00:00
Ezio Melotti
9a381c7a02
With skipUnless there is no need to add test classes conditionally.
2010-07-27 22:24:13 +00:00
Ezio Melotti
63c4640327
Use proper skips and assert* methods in test_asyncore.
2010-07-27 22:03:33 +00:00
Florent Xicluna
f1046ca817
Issue #4770 : Restrict binascii module to accept only bytes (as specified).
...
And fix the email package to encode to ASCII instead of ``raw-unicode-escape`` before ASCII-to-binary decoding.
2010-07-27 21:20:15 +00:00
Gregory P. Smith
5a63183a8b
The default size of the re module's compiled regular expression cache has
...
been increased from 100 to 500 and the cache replacement policy has changed
from simply clearing the entire cache on overflow to randomly forgetting 20%
of the existing cached compiled regular expressions. This is a performance
win for applications that use a lot of regular expressions and limits the
impact of the performance hit anytime the cache is exceeded.
2010-07-27 05:31:29 +00:00
Alexander Belopolsky
aeb039863d
Make python version of fromtimestamp behave more like C.
2010-07-26 02:36:41 +00:00
Brian Curtin
9a27b0cd19
Fix #7113 . Patch by Łukasz Langa.
...
Changes include using a list of lines instead of patching together using
string interpolation, and a multi-line value test cases.
2010-07-26 00:27:10 +00:00
Andrew M. Kuchling
688b9e384e
#777884 : make .normalize() do nothing for childless nodes, instead of raising an exception
2010-07-25 23:38:47 +00:00
Michael Foord
bd6c079552
Issue #4686 - add .args to exceptions in the configparsermodule
2010-07-25 23:09:25 +00:00
Alexander Belopolsky
07de165d6e
Corrected comments on where settrace and setprofile are tested.
2010-07-25 15:05:42 +00:00
Alexander Belopolsky
13c475385b
Issue #9315 : Renamed test_trace to test_sys_settrace and
...
test_profilehooks to test_sys_setprofile so that test_trace can be
used for testing the trace module and for naming consistency.
2010-07-25 15:02:55 +00:00
Alexander Belopolsky
f6d2ca06ac
Issue #9315 : Revert r83005 before renaming test_trace to
...
test_sys_settrace and test_profilehooks to test_sys_setprofile in all
three branches.
2010-07-25 14:58:54 +00:00
Ronald Oussoren
cb615e6abe
Fix for issue 9367: the test code for os.getgroups
...
assumes that the result of getgroups and the output
of the id(1) command return groups in the same
order. That assumption is both fragile and false.
2010-07-24 14:15:19 +00:00
Victor Stinner
eccc5facd3
Issue #4629 : getopt raises an error if an argument ends with = whereas getopt
...
doesn't except a value (eg. --help= is rejected if getopt uses ['help='] long
options).
2010-07-24 00:49:20 +00:00
Alexander Belopolsky
cf86e368eb
Issue #7989 : Added pure python implementation of the datetime module.
2010-07-23 19:25:47 +00:00
Brett Cannon
671153db25
Add queue tests for empty, full, put_nowait, and get_nowait.
...
Closes issue 9357. Thanks to Brian Brazil for the patch.
2010-07-23 16:56:21 +00:00
Brian Curtin
81a4a6abb7
Tab test_repr_daemon over so it's included in ThreadTests.
...
Noticed by Amaury.
2010-07-23 16:30:10 +00:00
Brett Cannon
4b16e130cc
Add tests for fnmatch.filter and translate.
...
Partially closes issue 9356. Thanks to Brian Brazil for the patch.
2010-07-23 16:23:13 +00:00
Richard Jones
8cb3619f86
New tests for smtpd module. Has full coverage for SMTPChannel and SMTPServer.
2010-07-23 16:20:40 +00:00
Brett Cannon
3f5f226ba0
Add more tests for the threading.Thread.repr.
...
Partially closes issue 9346. Thanks to Brian Brazil for the patch.
2010-07-23 15:50:52 +00:00
Brett Cannon
42e54b29b9
Stop shadowing a test class.
2010-07-23 14:45:19 +00:00
Brett Cannon
1f27479e26
Explicitly test relative imports by reusing importlib tests.
...
Closes issue 8392. Thanks Virgil Dupras for the initial patch.
2010-07-23 14:03:16 +00:00
Brett Cannon
cfae36fa8e
Test calendar.monthrange.
...
Closes issue 9342. Thanks John Chandler for the patch.
2010-07-23 13:54:14 +00:00
Ronald Oussoren
b6ee4f5bfc
This fixes issue7900 by adding code that deals
...
with the fact that getgroups(2) might return
more that MAX_GROUPS on OSX.
See the issue (and python-dev archives) for the
gory details. Summarized: OSX behaves rather oddly
and Apple says this is intentional.
2010-07-23 13:53:51 +00:00
Martin v. Löwis
c9e1c7d97f
Issue #6095 : Make directory argument to os.listdir optional.
...
Patch by Virgil Dupras.
2010-07-23 12:16:41 +00:00
Ronald Oussoren
e186e384f4
Fix for issue 7895. Avoid crashing the interpreter
...
when calling platform.mac_ver after calling os.fork by
reading from a system configuration file instead of
using OSX APIs.
2010-07-23 11:54:59 +00:00
Ronald Oussoren
c3960c28b0
Minor tweak of test_osx_env to
...
avoid failing when the framework is not
yet installed.
2010-07-23 11:48:36 +00:00
Ronald Oussoren
102d11a6d6
Workaround for issue 4047: in some configurations of
...
the Crash Reporter on OSX test_subprocess will trigger
the reporter.
This patch prints a warning when the Crash Reporter will
get triggered intentionally, which should avoid confusing
people.
2010-07-23 09:50:05 +00:00