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
Brian Curtin
db902ac0b4
Skip this test as it doesn't apply to Windows. It was added for
...
#9189 for some GCC flags.
2010-07-22 15:38:28 +00:00
Antoine Pitrou
8cb6dbf1b9
Issue #5395 : check that array.fromfile() re-raises an IOError instead of replacing it
...
with EOFError.
(this is only an added test, but 2.x will get a fix too)
2010-07-21 16:41:31 +00:00
Benjamin Peterson
20f9c3c50f
revert unintended changes
2010-07-20 22:39:34 +00:00
Benjamin Peterson
013783c529
move test_trace.py so as not to conflict with future tests for the trace module
2010-07-20 22:37:19 +00:00
Gregory P. Smith
41e6c3df8b
Fixes Issue #3704 : http.cookiejar was not properly handling URLs with a / in
...
the parameters. (This is jjlee's issue3704.patch ported to py3k)
2010-07-19 23:17:22 +00:00
Senthil Kumaran
79e17f6f66
Fix Issue9301 - urllib.parse.unquote and unquote_to_byte to raise TypeError for None.
2010-07-19 18:17:19 +00:00
Stefan Krah
99212f61db
Sub-issue of #9036 : Fix incorrect use of Py_CHARMASK.
2010-07-19 17:58:26 +00:00
Stefan Krah
9542cc6eb5
Issue #9265 : Incorrect name passed as arg[0] when shell=True
...
and executable specified.
2010-07-19 14:20:53 +00:00
Ronald Oussoren
f4ebe2e8a0
This patch adds a testcase that demonstrates a problem
...
with the expansion of LDSHARED when accessing that value
through sysconfig.
The problem is probably caused by the 9189.
A fix will follow shortly.
2010-07-19 13:00:36 +00:00
Alexander Belopolsky
d92f04062a
Issue #5180 : Fixed a bug that prevented loading 2.x pickles in 3.x
...
python when they contain instances of old-style classes.
2010-07-17 22:50:45 +00:00
Antoine Pitrou
448acd0a3f
Fix possible failure in pickling tests due to different instantiations
...
of the random module being around.
2010-07-16 19:10:38 +00:00
Antoine Pitrou
1f9dea0b5f
Issue #9251 : test_threaded_import didn't fail when run through regrtest
...
if the import lock was disabled.
2010-07-14 11:52:38 +00:00
Senthil Kumaran
aa69d4d00f
Fix Issue5842 - Moving the tests out of urllib.parse module
2010-07-14 10:21:22 +00:00
Victor Stinner
996903120c
Woops, test_sndhdr.py contains the same code twice: fix it
2010-07-13 23:08:01 +00:00
Victor Stinner
e9ebde48cf
Issue #9243 : Fix sndhdr module and add unit tests, contributed by James Lee.
2010-07-13 23:04:56 +00:00
Alexander Belopolsky
903396ee66
Set sys.modules[name] to None instead of 0 to block module import.
2010-07-13 14:50:16 +00:00
Mark Dickinson
94628eeb58
Yield more information on failure in test_struct boolean test.
2010-07-12 20:03:24 +00:00
Benjamin Peterson
5ef96e5fac
allow byte literals
2010-07-11 23:06:06 +00:00
Mark Dickinson
68c5de6d1c
assertEquals -> assertEqual
2010-07-11 19:12:10 +00:00
Mark Dickinson
b214e90e01
Issue #9137 : Fix issue in MutableMapping.update, which incorrectly
...
treated keyword arguments called 'self' or 'other' specially.
2010-07-11 18:53:06 +00:00
Mark Dickinson
8e0c996873
Issue #9165 : Add math.isfinite and cmath.isfinite.
2010-07-11 17:38:24 +00:00
Benjamin Peterson
3e7428995f
test for set literals
2010-07-11 12:59:24 +00:00
Senthil Kumaran
2ef16328e8
Stricter verification for file based url scheme and reliance on ftp protocol.
2010-07-11 03:12:43 +00:00
Benjamin Peterson
0d62f5bbfe
ValueError is eventually what we want to move to, I suppose
2010-07-10 15:14:45 +00:00
R. David Murray
0425a8ea72
Fix 'refleak' introduced by fnmatch cache purge tests.
...
This introduces a 'purge' function for the fnmatch module analogous
to the 'purge' function in the re module.
2010-07-10 13:52:13 +00:00
Georg Brandl
0310a83e7f
#3071 : tell how many values were expected when unpacking too many.
2010-07-10 10:32:36 +00:00
Benjamin Peterson
b669221bd1
be more robust across platforms
2010-07-09 19:37:00 +00:00
Brian Curtin
74e4561a3c
Re-flow several long lines from #1578269 .
2010-07-09 15:58:59 +00:00
Brian Curtin
16633fa497
Fix the breakage of Lib/tarfile.py on non-Windows platforms due to
...
using WindowsError in a try/except. Only add WindowsError to the list of
exceptions to catch when we are actually running on Windows.
Additionally, add a call that was left out in test_posixpath.
Thanks Amaury, Antoine, and Jason.
2010-07-09 13:54:27 +00:00
Benjamin Peterson
4b83af9576
wrap
2010-07-09 13:31:11 +00:00
Benjamin Peterson
a04a32d586
allow more exceptions
2010-07-09 13:28:42 +00:00
Benjamin Peterson
ccbcf53865
OverflowError is fine
2010-07-09 13:20:40 +00:00
R. David Murray
ea340a317a
7846: limit fnmatch pattern cache to _MAXCACHE=100 entries.
...
Patch by Andrew Clegg.
2010-07-09 12:23:21 +00:00
Benjamin Peterson
8b0ef21c15
use assert method
2010-07-09 01:58:26 +00:00
Benjamin Peterson
d02441ea2f
fix repr of complicated structseqs #9206
2010-07-08 22:33:03 +00:00
Benjamin Peterson
8c567c540d
assert tuple inheritance
2010-07-08 22:16:05 +00:00