Antoine Pitrou
7bfe89945b
Followup to #7502 : add __hash__ method and tests.
2011-12-18 20:22:50 +01:00
Antoine Pitrou
92d4acb7a7
Issue #7502 : Fix equality comparison for DocTestCase instances.
...
Patch by Cédric Krier.
2011-12-18 19:29:06 +01:00
Antoine Pitrou
0f694d72a2
Merge
2011-12-18 19:00:16 +01:00
Antoine Pitrou
fb0901c968
In the test SSL server, also output the cipher name
2011-12-18 19:00:02 +01:00
Charles-François Natali
b055bf6acb
Issue #11870 : threading: Properly reinitialize threads internal locks and
...
condition variables to avoid deadlocks in child processes.
2011-12-18 18:45:16 +01:00
Charles-François Natali
3c4dcea712
Issue #8035 : urllib: Fix a bug where the client could remain stuck after a
...
redirection or an error.
2011-12-18 16:08:33 +01:00
Victor Stinner
f8eac00779
Issue #13623 : Fix a performance regression introduced by issue #12170 in
...
bytes.find() and handle correctly OverflowError (raise the same ValueError than
the error for -1).
2011-12-18 01:17:41 +01:00
Gregory P. Smith
e85488c6f4
Mention that level can be an int or str in the setLevel docstring.
2011-12-17 12:36:34 -08:00
Antoine Pitrou
1637487a0c
Skip test if the path is too long for a AF_UNIX socket
2011-12-16 15:04:12 +01:00
Antoine Pitrou
6ec29e299b
Issue #8373 : The filesystem path of AF_UNIX sockets now uses the filesystem
...
encoding and the surrogateescape error handler, rather than UTF-8. Patch
by David Watson.
2011-12-16 14:46:36 +01:00
Benjamin Peterson
ca81bf76e5
fix this test to actually test something ( closes #13606 )
...
Thanks Mark Shannon.
2011-12-15 15:57:15 -05:00
Victor Stinner
9c49036e70
(Merge 3.2) Issue #13545 : Fix platform.libc_version() is the SO version is missing
2011-12-15 21:42:28 +01:00
Victor Stinner
87448819ab
Issue #13545 : Fix platform.libc_version() is the SO version is missing
2011-12-15 21:42:03 +01:00
Benjamin Peterson
bfebb7b54a
improve abstract property support ( closes #11610 )
...
Thanks to Darren Dale for patch.
2011-12-15 15:34:02 -05:00
Antoine Pitrou
e0e2735f41
Fix OSError.__init__ and OSError.__new__ so that each of them can be
...
overriden and take additional arguments (followup to issue #12555 ).
2011-12-15 14:31:28 +01:00
Meador Inge
96ff0840b6
Issue #13593 : updating the importlib utility decorators for __qualname__.
2011-12-14 22:53:13 -06:00
Meador Inge
d7afeeeb8d
Issue #13591 : import_module potentially imports a module twice.
2011-12-14 22:27:28 -06:00
Meador Inge
416f12ddb3
Issue #13591 : import_module potentially imports a module twice.
2011-12-14 22:23:46 -06:00
Ned Deily
1b0b6ae36b
Issue #4625 : If IDLE cannot write to its recent file or breakpoint
...
files, display a message popup and continue rather than crash.
(original patch by Roger Serwy)
2011-12-14 15:03:31 -08:00
Ned Deily
f505b7425c
Issue #4625 : If IDLE cannot write to its recent file or breakpoint
...
files, display a message popup and continue rather than crash.
(original patch by Roger Serwy)
2011-12-14 14:58:24 -08:00
Charles-François Natali
77e1bfc377
Issue #13453 : Fix a race condition in test_poplib.
2011-12-14 19:29:56 +01:00
Charles-François Natali
83ef2549de
Issue #13453 : Fix a race condition in test_poplib.
2011-12-14 19:28:56 +01:00
Giampaolo Rodola'
556ba04a8d
Fix #13449 : add 'blocking' parameter to sched.scheduler.run() so that the scheduler can be used in non-blocking applications
2011-12-14 14:38:45 +01:00
Giampaolo Rodola'
73520d57eb
Fix #8684 : make sched.scheduler class thread-safe
2011-12-14 13:34:26 +01:00
Alexandre Vassalotti
a23d65ccfe
Merge 3.2
2011-12-13 13:22:42 -05:00
Alexandre Vassalotti
3bfc65a25b
Issue #13505 : Make pickling of bytes object compatible with Python 2.
...
Initial patch by sbt.
2011-12-13 13:08:09 -05:00
Florent Xicluna
aa6c1d240f
Issue #13575 : there is only one class type.
2011-12-12 18:54:29 +01:00
Antoine Pitrou
9d57481f04
Issue #13577 : various kinds of descriptors now have a __qualname__ attribute.
...
Patch by sbt.
2011-12-12 13:47:25 +01:00
Meador Inge
ff7f64ca0e
Issue #13544 : Add __qualname__ to functools.WRAPPER_ASSIGNMENTS.
...
Patch by Filip Gruszczyński.
2011-12-11 22:37:31 -06:00
Giampaolo Rodola'
836e9aab2f
fix #13563 : make use of with statement in ftplib.py where needed
2011-12-10 21:25:04 +01:00
Florent Xicluna
313b2ad1a8
Fix imports in xml.dom.
2011-12-10 21:14:53 +01:00
Lars Gustäbel
0a9dd2f11d
Issue #5689 : Add support for lzma compression to the tarfile module.
2011-12-10 20:38:14 +01:00
Benjamin Peterson
ce2af33562
merge 3.2
2011-12-10 12:44:37 -05:00
Benjamin Peterson
b870aa1255
we're always going to have gc
2011-12-10 12:44:25 -05:00
Benjamin Peterson
d3a345a21f
merge 3.2
2011-12-10 12:38:52 -05:00
Benjamin Peterson
964561bb7c
you can't get resource.error if you can't import resource
2011-12-10 12:31:42 -05:00
Victor Stinner
10a6ddb062
Issue #11886 : Fix also test_time for the non-DST timezone name (EST/AEST)
2011-12-10 14:37:53 +01:00
Charles-François Natali
1635e9cc59
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
2011-12-10 13:17:46 +01:00
Charles-François Natali
13859bfedc
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
2011-12-10 13:16:44 +01:00
Florent Xicluna
7f1c15b854
Fix comment in difflib.
2011-12-10 13:02:17 +01:00
Florent Xicluna
67317750af
Issue #13248 : turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd).
2011-12-10 11:07:42 +01:00
Florent Xicluna
1b7458b2a1
Closes #2979 : add parameter 'use_builtin_types' to the SimpleXMLRPCServer.
2011-12-09 22:35:06 +01:00
Victor Stinner
e3b47152a4
Write tests for invalid characters (U+00110000)
...
Test the following functions:
* codecs.raw_unicode_escape_decode()
* PyUnicode_FromWideChar()
* PyUnicode_FromUnicode()
* "unicode_internal" and "unicode_escape" decoders
2011-12-09 20:49:49 +01:00
Victor Stinner
7f54f75900
Issue #13441 : Enable the workaround for Solaris locale bug
...
Skip locales triggering the mbstowcs() bug. I collected the locale list thanks
my previous commit:
* hu_HU (ISO8859-2): character U+30000020
* de_AT (ISO8859-1): character U+30000076
* cs_CZ (ISO8859-2): character U+30000020
* sk_SK (ISO8859-2): character U+30000020
* pl_PL (ISO8859-2): character U+30000020
* fr_CA (ISO8859-1): character U+30000020
2011-12-09 11:29:44 +01:00
Victor Stinner
69291c4af0
Issue #13441 : Skip some locales (e.g. cs_CZ and hu_HU) on Solaris to workaround
...
a mbstowcs() bug. For example, on Solaris, the hu_HU locale uses the locale
encoding ISO-8859-2, the thousauds separator is b'\xA0' and it is decoded as
U+30000020 (an invalid character) by mbstowcs().
The workaround is not enabled yet (commented): I would like first to get
more information about the failing locales.
2011-12-09 10:28:45 +01:00
Victor Stinner
5446bba269
Issue #13441 : Don't test the hu_HU locale on Solaris to workaround a mbstowcs()
...
bug. On Solaris, if the locale is hu_HU (and if the locale encoding is not
UTF-8), the thousauds separator is b'\xA0' which is decoded as U+30000020
instead of U+0020 by mbstowcs().
2011-12-09 01:20:03 +01:00
Victor Stinner
706141316a
Issue #13441 : Log the locale when localeconv() fails
2011-12-08 23:42:52 +01:00
Victor Stinner
bc9f0c68f5
(Merge 3.2) Issue #11886 : workaround an OS bug (time zone data) in test_time
...
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
2011-12-08 00:33:14 +01:00
Victor Stinner
0cd479074d
Issue #11886 : workaround an OS bug (time zone data) in test_time
...
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
2011-12-08 00:32:51 +01:00
Ezio Melotti
96e76775bc
#13531 : merge with 3.2.
2011-12-08 00:03:59 +02:00
Ezio Melotti
eb5879414d
#13531 : add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
2011-12-08 00:02:00 +02:00
Ned Deily
3be637e67f
Issue #8641 : Update IDLE 3 syntax coloring to recognize b".." and not u"..".
...
(Patch by Tal Einat)
2011-12-07 01:12:50 -08:00
Ned Deily
2f0ad742b5
Issue #8641 : Update IDLE 3 syntax coloring to recognize b".." and not u"..".
...
(Patch by Tal Einat)
2011-12-07 01:08:35 -08:00
Antoine Pitrou
4ce6aa4ba7
Fix dangling whitespace
2011-12-06 22:34:36 +01:00
Antoine Pitrou
38d9643d5e
Issue #13464 : Add a readinto() method to http.client.HTTPResponse.
...
Patch by Jon Kuhn.
2011-12-06 22:33:57 +01:00
Jesus Cea
0f6492250c
MERGE: Close #13500 : Hitting EOF gets cmd.py into a infinite EOF on return loop
2011-12-06 20:47:38 +01:00
Jesus Cea
a9837d8194
Close #13500 : Hitting EOF gets cmd.py into a infinite EOF on return loop
2011-12-06 20:46:57 +01:00
Lars Gustäbel
bb44b73e17
Remove no longer needed work-around for bz2 file object support.
2011-12-06 13:44:10 +01:00
Lars Gustäbel
45fb082180
Merge with 3.2: Correctly detect bzip2 compressed streams with blocksizes other than 900k.
2011-12-06 13:00:58 +01:00
Lars Gustäbel
ed1ac587df
Correctly detect bzip2 compressed streams with blocksizes other than 900k.
2011-12-06 12:56:38 +01:00
Jason R. Coombs
9c3895f376
Corrected order of parameters to HTTPError in test_urllib2.py.
2011-12-04 08:14:18 -05:00
Jason R. Coombs
7ff21d7a3c
Pass positional arguments - HTTPError is not accepting keyword arguments. Reference #13211 and #12555 .
2011-12-03 23:18:11 -05:00
Jason R. Coombs
0612e8c2a2
Merged fix for #13211 from 3.2
2011-12-03 09:39:58 -05:00
Petri Lehtinen
5645850013
Issue #13439 : Merge branch 3.2
2011-12-02 21:25:39 +02:00
Petri Lehtinen
9aa20affb6
Issue #13439 : Fix many errors in turtle docstrings.
2011-12-02 21:24:14 +02:00
Ezio Melotti
b3d188f779
#8414 : merge with 3.2.
2011-12-02 18:23:54 +02:00
Ezio Melotti
6cc5bf7656
#8414 : add more tests for "assert". Initial patch by Gregory Nofi.
2011-12-02 18:22:52 +02:00
Nadeem Vawda
44ae4a2a22
Make error handling in BZ2File.{readable,seekable,writable,fileno} consistent with TextIOWrapper.
...
Also, add tests for these methods.
2011-11-30 17:39:30 +02:00
Nadeem Vawda
3ff069ebc6
Issue #6715 : Add module for compression using the LZMA algorithm.
2011-11-30 00:25:06 +02:00
Éric Araujo
c8e032006a
Merge 3.2
2011-11-29 17:14:27 +01:00
Éric Araujo
a74f8ef419
Fix inspect.getmodule to use a copy of sys.modules for iteration ( #13487 ).
...
This fixes a regression compared to 2.x, where sys.modules.items()
returns a copy, as indicated by a comment in the source. Diagnosis and
patch by Erik Tollerud.
2011-11-29 16:58:53 +01:00
Éric Araujo
e1886bfaf4
Fix instructions on how to rebuild some modules
2011-11-29 16:45:34 +01:00
Éric Araujo
ff91306127
Add a regrtest cleanup check for shutil registries
2011-11-29 16:45:07 +01:00
Éric Araujo
a2b89e364f
Fix last remaining references to ex-devguide
2011-11-29 16:36:17 +01:00
Victor Stinner
5d7c9aba29
(Merge 3.2) Fix curses module for strict SysV implementation (without has_key function)
2011-11-29 00:06:10 +01:00
Victor Stinner
b9bb1f4db3
Fix curses module for strict SysV implementation (without has_key function)
2011-11-29 00:03:50 +01:00
Antoine Pitrou
1439c77417
Merge test_xmlrpc_net fixes (issue #13434 )
2011-11-28 21:15:22 +01:00
Antoine Pitrou
f1c141b7fb
Fix resource warning in test_xmlrpc_net
2011-11-28 21:14:46 +01:00
Antoine Pitrou
5a88c38fab
Issue #13434 : skip the time.xmlrpc.com test, and reenable the buildbot test.
2011-11-28 21:12:24 +01:00
Antoine Pitrou
39a73a4cfa
Issue #7111 : Python can now be run without a stdin, stdout or stderr stream.
...
It was already the case with Python 2. However, the corresponding
sys module entries are now set to None (instead of an unusable file object).
2011-11-28 19:09:45 +01:00
Antoine Pitrou
11942a58a1
Issue #7111 : Python can now be run without a stdin, stdout or stderr stream.
...
It was already the case with Python 2. However, the corresponding
sys module entries are now set to None (instead of an unusable file object).
2011-11-28 19:08:36 +01:00
Meador Inge
31b798d3c8
Issue #12618 : py_compile cannot create files in current directory
...
Initial patch by Sjoerd de Vries.
2011-11-28 09:34:47 -06:00
Meador Inge
22b9b37915
Issue #12618 : py_compile cannot create files in current directory
...
Initial patch by Sjoerd de Vries.
2011-11-28 09:27:32 -06:00
Victor Stinner
d1b097f884
Issue #13415 : test_curses skips unencodable characters
2011-11-28 07:26:19 +01:00
Charles-François Natali
7be8f68d37
Issue #13415 : Skip test_os.test_unset_error on FreeBSD and OS X.
2011-11-27 12:49:27 +01:00
Victor Stinner
756c6ecdc4
Issue #13415 : Help to locate curses.h when _curses module is linked to ncursesw
2011-11-27 00:19:53 +01:00
Antoine Pitrou
5604ef3e36
Issue #13444 : When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.
...
This also adds a test for issue #5319 , whose resolution introduced the issue.
2011-11-26 22:02:29 +01:00
Antoine Pitrou
d7c8fbf89e
Issue #13444 : When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.
...
This also adds a test for issue #5319 , whose resolution introduced the issue.
2011-11-26 21:59:36 +01:00
Meador Inge
59ff2c5640
Issue #12618 : fix py_compile unit tests to handle different drives on Windows
2011-11-26 11:39:49 -06:00
Meador Inge
fb36b3f6a0
Issue #12618 : fix py_compile unit tests to handle different drives on Windows
2011-11-26 11:37:02 -06:00
Giampaolo Rodola'
6a5dcd4b2a
sched.py: fix test_queue by making sure that queue property returns an orderd list of upcoming events
2011-11-26 12:17:42 +01:00
Charles-François Natali
2966f10ec0
Issue #13415 : Skip test_os.test_unset_error on FreeBSD < 7 and OS X < 10.6
...
(where unsetenv() doesn't return a value).
2011-11-26 11:32:46 +01:00
Meador Inge
261a6d7c21
Issue #12618 : create unit tests for the py_compile module
2011-11-25 23:40:53 -06:00
Meador Inge
6f16660ca7
Issue #12618 : create unit tests for the py_compile module
2011-11-25 23:36:48 -06:00
Meador Inge
4bc45b7a9f
Issue #13380 : add an internal function for resetting the ctypes caches
2011-11-25 22:37:44 -06:00
Meador Inge
11e381310b
Issue #13380 : add an internal function for resetting the ctypes caches
2011-11-25 22:33:32 -06:00
Antoine Pitrou
4d098735c6
Some libcs' snprintf may output a leading minus sign when %p-formatting
...
(should fix a failure on the OpenIndiana AMD64 buildbot)
2011-11-26 01:42:03 +01:00
Victor Stinner
0fdfceb782
Issue #12567 : The curses module uses Unicode functions for Unicode arguments
...
when it is linked to the ncurses library. It encodes also Unicode strings to
the locale encoding instead of UTF-8.
2011-11-25 22:10:02 +01:00
Antoine Pitrou
c24847658f
Issue #12856 : Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
...
Patch by Brian Harring.
2011-11-25 21:29:27 +01:00
Antoine Pitrou
4558bad7d6
Issue #12856 : Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
...
Patch by Brian Harring.
2011-11-25 21:28:15 +01:00
Victor Stinner
6345be9a14
Close #13093 : PyUnicode_EncodeDecimal() doesn't support error handlers
...
different than "strict" anymore. The caller was unable to compute the
size of the output buffer: it depends on the error handler.
2011-11-25 20:09:01 +01:00
Antoine Pitrou
86a36b500a
PEP 3155 / issue #13448 : Qualified name for classes and functions.
2011-11-25 18:56:07 +01:00
Antoine Pitrou
0e86a5842d
Issue #9957 : SpooledTemporaryFile.truncate() now accepts an optional size parameter, as other file-like objects.
...
Patch by Ryan Kelly.
2011-11-25 18:03:09 +01:00
Senthil Kumaran
5d036e1ccf
merge from 3.2 testFnNames is assigned twice.
2011-11-25 02:09:24 +08:00
Senthil Kumaran
f27be5c60b
testFnNames is assigned twice.
2011-11-25 02:08:39 +08:00
Giampaolo Rodola'
c8cf4dfa2f
revert cset 6a0da9b65e54 against sched.py committed by accident
2011-11-23 00:03:15 +01:00
Victor Stinner
9329029ed7
(Merge 3.2) Issue #13436 : Fix unsetenv() test on Windows
2011-11-22 22:32:28 +01:00
Victor Stinner
b3f8268031
Issue #13436 : Fix unsetenv() test on Windows
2011-11-22 22:30:19 +01:00
Victor Stinner
cbbd562f00
Merge branch default
2011-11-22 22:23:23 +01:00
Victor Stinner
896f4714f4
Merge branch 3.2
2011-11-22 22:22:26 +01:00
Victor Stinner
65170954e0
(Merge 3.2) Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:16:17 +01:00
Amaury Forgeot d'Arc
942d5ba125
Merge branch 3.2
2011-11-22 22:02:01 +01:00
Victor Stinner
60b385e813
Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:01:28 +01:00
Amaury Forgeot d'Arc
58e8761da6
Issue #13436 : Fix a bogus error message when an AST object was passed
...
an invalid integer value.
2011-11-22 21:51:55 +01:00
Giampaolo Rodola'
f683700121
sort last committed name in alphabetical order
2011-11-22 21:19:37 +01:00
Charles-François Natali
221ef67fd6
Issue #12156 : Skip test_multiprocessing on systems which don't support enough
...
POSIX semaphores (among which FreeBSD < 8).
2011-11-22 18:55:22 +01:00
Charles-François Natali
3be00953b2
Issue #12156 : Skip test_multiprocessing on systems which don't support enough
...
POSIX semaphores (among which FreeBSD < 8).
2011-11-22 18:36:39 +01:00
Giampaolo Rodola'
be55d99b3d
Fix 13245:
...
sched.scheduler class constructor's timefunc and delayfunct parameters are now optional.
scheduler.enter and scheduler.enterabs methods gained a new kwargs parameter.
Patch contributed by Matt Mulsow.
2011-11-22 13:33:34 +01:00
Victor Stinner
b84d723509
(Merge 3.2) Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
2011-11-22 01:50:07 +01:00
Victor Stinner
ab1d16b456
Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
...
* Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII()
* Remove the unused "e" variable in replace()
2011-11-22 01:45:37 +01:00
Victor Stinner
c814a38f3f
Add a test on str.__getnewargs__()
...
It tests indirectly PyUnicode_Copy(): ensure that the string is a copy.
2011-11-22 01:06:15 +01:00
Victor Stinner
42bf77537e
Rewrite PyUnicode_EncodeDecimal() to use the new Unicode API
...
Add tests for PyUnicode_EncodeDecimal() and
PyUnicode_TransformDecimalToASCII().
2011-11-21 22:52:58 +01:00
Antoine Pitrou
ce4a9da705
Issue #13411 : memoryview objects are now hashable when the underlying object is hashable.
2011-11-21 20:46:33 +01:00
Antoine Pitrou
7fe601c5bf
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
...
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:22:01 +01:00
Antoine Pitrou
58fcf9f801
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
...
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:16:44 +01:00
Victor Stinner
41dde32bf2
Issue #13441 : Reenable strxfrm() tests on Solaris
2011-11-21 18:04:30 +01:00
Victor Stinner
0293db69a0
Issue #13441 : Disable temporary localeconv() tests on Solaris
2011-11-21 03:19:05 +01:00
Victor Stinner
a1c03b0a58
Issue #13441 : Disable temporary strxfrm() tests on Solaris
2011-11-21 01:02:23 +01:00
Victor Stinner
242b6ea975
(Merge 3.2) Close #13401 : Skip TestFileTypeW of test_argparse if the current user is root
...
Patch written by Arfrever Frehtes Taifersar Arahesis.
2011-11-20 23:10:12 +01:00
Victor Stinner
a04b39b261
Close #13401 : Skip TestFileTypeW of test_argparse if the current user is root
...
Patch written by Arfrever Frehtes Taifersar Arahesis.
2011-11-20 23:09:09 +01:00
Éric Araujo
54e26c01b0
Update list of trove classifiers
2011-11-20 16:01:35 +01:00
Charles-François Natali
e6eabd4345
Issue #13215 : multiprocessing.Connection: don't hammer the remote end with
...
retries in case of ECONNREFUSED.
2011-11-19 09:59:43 +01:00
Ezio Melotti
4a7abe7ca6
#11112 : merge with 3.2.
2011-11-18 18:35:53 +02:00
Ezio Melotti
7f78ddc3ad
#11112 : Fix typo in a base class in test_socket.
2011-11-18 18:33:14 +02:00
Ezio Melotti
304261e85d
#13358 : merge with 3.2.
2011-11-18 18:02:59 +02:00
Ezio Melotti
15cb489234
#13358 : HTMLParser now calls handle_data only once for each CDATA.
2011-11-18 18:01:49 +02:00
Ezio Melotti
def4728fd6
#4147 : merge with 3.2.
2011-11-18 17:36:07 +02:00
Ezio Melotti
8008f2aba0
#4147 : minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg.
2011-11-18 17:34:26 +02:00
Ezio Melotti
adc417ce36
#13406 : fix more deprecation warnings and move the deprecation of unicode-internal earlier in the code.
2011-11-17 12:23:34 +02:00
Victor Stinner
f7c5ae2257
Issue #13374 : Deprecate os.getcwdb() on Windows
2011-11-16 23:43:07 +01:00
Ezio Melotti
345379a7f8
#13406 : correct the error message in check_warnings too.
2011-11-16 09:54:19 +02:00
Ezio Melotti
11060a4a48
#13406 : silence deprecation warnings in test_codecs.
2011-11-16 09:39:10 +02:00
Victor Stinner
2821644d8a
Issue #13374 : Skip deprecation tests for os.symlink() on Windows XP
...
To avoid a NotImplementedError('CreateSymbolicLinkW not found') error.
2011-11-16 00:34:44 +01:00
Victor Stinner
040e16e3e8
"unicode_internal" codec has been deprecated: fix related tests
2011-11-15 22:44:05 +01:00
Victor Stinner
1ab6c2d2c2
Issue #13374 : The Windows bytes API has been deprecated in the os module. Use
...
Unicode filenames instead of bytes filenames to not depend on the ANSI code
page anymore and to support any filename.
2011-11-15 22:27:41 +01:00
Florent Xicluna
6166519d2b
Closes #13297 : use bytes type to send and receive binary data through XMLRPC.
2011-11-15 20:53:25 +01:00
Antoine Pitrou
28e401e717
Issue #13392 : Writing a pyc file should now be atomic under Windows as well.
2011-11-15 19:15:19 +01:00
Éric Araujo
3f2ba3bd86
Branch merge
2011-11-15 16:12:22 +01:00
Antoine Pitrou
13f8b682a7
Mark test_devpoll as unexpected on most platforms
2011-11-15 15:25:59 +01:00
Éric Araujo
4d15546504
Remove obsolete verbose arguments from packaging.
...
Logging replaces verbose arguments. I haven’t fixed the example in
Doc/install/install.rst because I have major fixes and changes to the
oc under way and will fix or remove that example as part of that task.
2011-11-15 11:43:20 +01:00
Éric Araujo
9b5c7f44fa
Remove unused code from packaging.tests.__init__
2011-11-15 10:48:36 +01:00
Antoine Pitrou
78edf7576e
Issue #13333 : The UTF-7 decoder now accepts lone surrogates
...
(the encoder already accepts them).
2011-11-15 01:44:16 +01:00
Antoine Pitrou
5418ee0b9a
Issue #13333 : The UTF-7 decoder now accepts lone surrogates
...
(the encoder already accepts them).
2011-11-15 01:42:21 +01:00
Éric Araujo
36500344b2
Remove redundant setUp/tearDown methods in packaging tests
2011-11-14 19:46:31 +01:00
Éric Araujo
acc0952ff8
The error message should contain the key as given, not normalized.
...
Backout of 2e047702df7f. Reported by Jeremy Kloth.
2011-11-14 19:45:30 +01:00
Éric Araujo
618b73035a
Add tests to check initial content of packaging.database caches
2011-11-14 19:43:37 +01:00
Éric Araujo
e749e21948
packaging cleanup: A few super I missed in 5ae03b1e147a
2011-11-14 19:40:31 +01:00
Jesus Cea
d8b9ae6e8f
Issue #6397 : Support '/dev/poll' polling objects in select module, under Solaris & derivatives.
2011-11-14 19:07:41 +01:00
Éric Araujo
0efc419d4a
Adapt test and example after e39d1b6f0856.
...
Tarek’s commit fixed the way packaging configuration file markers are
split under Windows, but these two files were not edited.
2011-11-14 18:21:38 +01:00
Éric Araujo
bfc972974b
Fix a few typos
2011-11-14 18:18:15 +01:00
Éric Araujo
f8361623f0
Clean up byte-compilation code in packaging ( #11254 followup).
...
- Don't use keyword arguments for debug_override; I find it more
readable to have a comment explaining that True makes pyc and False
pyo than to write out the non-obvious (when you haven’t read the doc)
argument name
- Move duplicate code from build_py and install_lib into cmd
- Remove obsolete verbose argument of util.byte_compile
- Remove obsolete passing of -O/-OO to the Python process spawned by
util.byte_compile (I’ll remove the whole spawning later, after I write
more tests to check the contents of pyc and pyo files; now that
byte_compile does not depend on the value of __debug__ in the calling
Python, we can call py_compile or compileall directly)
2011-11-14 18:10:19 +01:00
Ezio Melotti
d5d4406c8e
#1745761 , #755670 , #13357 , #12629 , #1200313 : merge with 3.2.
2011-11-14 18:56:11 +02:00
Ezio Melotti
c2fe57762b
#1745761 , #755670 , #13357 , #12629 , #1200313 : improve attribute handling in HTMLParser.
2011-11-14 18:53:33 +02:00
Ezio Melotti
b245ed1cdf
Group tests about attributes in a separate class.
2011-11-14 18:13:22 +02:00
Antoine Pitrou
4339a7767d
Merge
2011-11-12 20:36:51 +01:00
Antoine Pitrou
7abe61f6b5
Restore smtpd.DEBUGSTREAM at the end of test_smtpd.
...
(backport of 6b9f547e92d8)
2011-11-12 20:36:29 +01:00
Antoine Pitrou
e0815e2db0
Restore smtpd.DEBUGSTREAM at the end of test_smtpd.
...
This fixes a subsequent refleak in test_smtplib.
2011-11-12 20:36:29 +01:00
Petri Lehtinen
516d80530b
Merge branch 3.2
2011-11-12 21:15:24 +02:00
Petri Lehtinen
c153cd3d5a
Update mailbox.Maildir tests
...
Remove a sleep to fix transient test failures. Use skewfactor of -3 to
make it work on systems that have 1 second precision for time.time().
Closes #11999
Refs #13254
2011-11-12 21:14:53 +02:00
Antoine Pitrou
61093c0ced
Issue #13193 : Fix distutils.filelist.FileList and
...
packaging.manifest.Manifest under Windows. The "recursive-include"
directive now recognizes both legal path separators.
2011-11-12 01:27:19 +01:00
Antoine Pitrou
8f0ffe587b
Issue #13193 : fix distutils.filelist.FileList under Windows
2011-11-12 01:20:45 +01:00
Florent Xicluna
04842a84c3
Remove unused or redundant imports in concurrent.futures and multiprocessing.
2011-11-11 20:05:50 +01:00
Florent Xicluna
e41f0de84d
Merge 3.2, fix typos.
2011-11-11 19:39:25 +01:00
Florent Xicluna
992d9e081f
Fix few typos.
2011-11-11 19:35:42 +01:00
Florent Xicluna
e54371e24c
Use unittest.skipUnless to skip the test related to the glibc bug, issue #13309 .
2011-11-11 18:59:30 +01:00
Brian Curtin
4ff29db243
Merge 3.2
2011-11-11 09:41:17 -06:00
Brian Curtin
675f6b87cd
Fix #13384 . Remove __future__ import in 3.x code.
2011-11-11 09:37:25 -06:00
Ezio Melotti
40dc919b0d
Fix range in test.
2011-11-11 17:00:46 +02:00
Antoine Pitrou
51f6648a31
Make test more inclusive
2011-11-11 13:35:44 +01:00
Antoine Pitrou
dffab19218
Enable commented out test
2011-11-11 13:31:59 +01:00
Antoine Pitrou
b0a1d628b8
Avoid a glibc bug in test_time (issue #13309 )
2011-11-11 03:04:35 +01:00
Antoine Pitrou
9768676f6f
Speed up IDNA for the common case
2011-11-10 22:49:20 +01:00
Charles-François Natali
240c55f721
Fix test_socket when built whithout threads.
2011-11-10 20:33:36 +01:00
Charles-François Natali
10b8cf4455
Issue #7777 : socket: Add Reliable Datagram Sockets (PF_RDS) support.
2011-11-10 19:21:37 +01:00
Charles-François Natali
0c929d9d39
Issue #13303 : Fix bytecode file default permission.
2011-11-10 19:12:29 +01:00
Antoine Pitrou
021572431b
Issue #13373 : multiprocessing.Queue.get() could sometimes block indefinitely
...
when called with a timeout. Patch by Arnaud Ysmal.
2011-11-10 00:38:25 +01:00
Antoine Pitrou
a365113679
Issue #13373 : multiprocessing.Queue.get() could sometimes block indefinitely
...
when called with a timeout. Patch by Arnaud Ysmal.
2011-11-10 00:37:09 +01:00
Victor Stinner
fd9cd24a05
Issue #13374 : Use Unicode filenames instead of bytes filenames
...
getcwdb() => getcwd()
2011-11-09 01:13:45 +01:00
Charles-François Natali
c12e093795
Back out changeset b6336ba796d4 until fix for #13303 .
2011-11-08 20:38:11 +01:00
Charles-François Natali
31846c4372
test_import: test_execute_bit_not_copied() was actually a no-op: enable it.
2011-11-08 19:43:09 +01:00
Charles-François Natali
69d44fdb90
test_import: test_execute_bit_not_copied() was actually a no-op: fix it.
2011-11-08 19:42:02 +01:00
Antoine Pitrou
682ca1e6e2
Fix BytesWarnings in fnmatch
2011-11-08 18:39:15 +01:00
Jesus Cea
bc91b46951
Partial patch for issue #11812 : Take care of test_telnetlib.py
2011-11-08 16:24:43 +01:00
Jesus Cea
c241df814f
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
2011-11-08 16:20:46 +01:00
Éric Araujo
23760e97ed
Don’t interpret backslashes in ASCII diagram in a docstring
2011-11-07 17:52:48 +01:00
Jason R. Coombs
aa204dbe9c
Issue #13211 : Add .reason attribute to HTTPError to implement parent class (URLError) interface.
2011-11-07 10:50:32 -05:00
Jesus Cea
6e533f040b
MERGE: Partial patch for issue #11812 : Take care of test_telnetlib.py
2011-11-08 16:39:26 +01:00
Jesus Cea
0fd66b8f30
MERGE: Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
2011-11-08 16:34:22 +01:00
Florent Xicluna
be908405a5
Some win32 platforms raise NotADirectoryError, others FileNotFoundError. Issue #13366 .
2011-11-07 23:24:08 +01:00
Brian Curtin
7eb65847da
branch merge.
2011-11-07 16:09:54 -06:00
Brian Curtin
569b494320
Fix #13327 . utimensat now has the atime and mtime arguments set as optional,
...
defaulting to None like the other utimes family members. It now accepts
keyword arguments because, unlike other other functions in the family,
it has a `flags` value at the end of the argument list (which
retains its 0 default).
2011-11-07 16:09:20 -06:00
Florent Xicluna
e0912db24e
Closes #13366 : fix test_pep277 failure on Windows.
2011-11-07 21:56:17 +01:00
Brian Curtin
ca0fbc02e9
branch merge
2011-11-07 14:19:46 -06:00
Brian Curtin
c1b65d1831
Fix 13327. Remove explicit None arguments from futimes, futimens, futimesat,
...
and lutimes.
2011-11-07 14:18:54 -06:00
Florent Xicluna
ca6befb77f
More assertions in test_unicode_file, to chase issue #13348 .
2011-11-07 19:49:07 +01:00
Florent Xicluna
a011e2b2fa
fileinput: replace this last occurence of codecs.open with builtins.open.
2011-11-07 19:43:07 +01:00
Florent Xicluna
5252f9faee
logging: replace codecs.open with builtins.open, remove '_encoded' sort, add some tests.
2011-11-07 19:43:05 +01:00
Éric Araujo
1cdbf57c7c
Merge 3.2
2011-11-07 18:11:27 +01:00
Éric Araujo
b1c6f59d71
Branch merge
2011-11-07 18:11:12 +01:00
Vinay Sajip
e2618f34be
Closes #13361 : Merge fix from 3.2.
2011-11-07 10:15:55 +00:00
Vinay Sajip
3bd5638736
Closes #13361 : Raise correct exception type.
2011-11-07 10:15:08 +00:00
Vinay Sajip
39b53c50c4
Merged fix for #13361 from 3.2.
2011-11-07 08:53:58 +00:00
Vinay Sajip
61b787e6dd
Closes #13661 : Check added for type of logger name.
2011-11-07 08:53:03 +00:00
Éric Araujo
2a7cc5343d
Remove unnecessary version check
2011-11-07 09:18:30 +01:00
Brian Curtin
0277aa3b24
Oops. Update a placeholder comment with the issue number.
2011-11-06 13:50:15 -06:00
Brian Curtin
52fbea1d87
Fix #13327 . Remove the need for an explicit None as the second argument to
...
os.utime in order to update to the current time. The second argument is now
optional.
2011-11-06 13:41:17 -06:00
Petri Lehtinen
9589ab1745
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
...
Issue #13340 .
2011-11-06 21:06:10 +02:00
Petri Lehtinen
ebfaabd663
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
...
Issue #13340 .
2011-11-06 21:02:39 +02:00
Éric Araujo
438f21a406
Use more standard name for one option of packaging’s install_distinfo
2011-11-06 11:52:30 +01:00
Éric Araujo
ca9460324a
Remove redundant __main__ blocks from packaging modules.
...
The one interface we commit to maintain is the run module
(a.k.a. the pysetup script).
2011-11-06 11:38:58 +01:00
Éric Araujo
fad46e19b4
Clean up mocking of stdout and stdin in packaging tests.
...
Running with regrtest does not show spurious output or unrestored
sys.std* objects; sometimes running with make test is different, I’ll
watch the buildbots.
In addition, update the create module to use logging.
2011-11-06 11:32:47 +01:00
Éric Araujo
261ccdce48
Minor tweak to packaging tests.
...
When an option is changed on a command object, calling ensure_finalized
for a second time will not run finalize_options again, because
ensure_finalized is a no-op the second time. By resetting the finalized
attribute, we can be sure that whatever computation takes place in
finalize_options will happen again.
(In test_command_clean, I removed two lines that were a no-op.)
2011-11-06 10:48:55 +01:00
Éric Araujo
a963e0d917
Undo potentially confusing name change in packaging.
...
This method was named reinitialize_command in distutils and accompanied
by a comment suggesting to change it to get_reinitialized_command.
Following that, I did the change for distutils2, but it proved
confusing: The Distribution object has an internal cache of command
objects, to make sure only one instance is ever used, and the name
get_reinitialized_command could suggest that the object returned was
independent of that cache, which it was not. I’m reverting the name
change to make code clearer.
2011-11-06 06:54:05 +01:00
Éric Araujo
4e377f215d
Make sure packaging tests that register custom commands also clear them
2011-11-06 07:01:18 +01:00
Ned Deily
55f87578a1
Issue #13300 : Fix IDLE Restart Shell command failure introduced by
...
3a5a0943b201. Do not close listening socket on subprocess restart.
2011-11-05 22:36:44 -07:00
Antoine Pitrou
deb925fc14
Skip early if stdin and stdout are not ttys
2011-11-06 03:04:12 +01:00
Antoine Pitrou
1ce4b14c4d
Skip early if stdin and stdout are not ttys
2011-11-06 03:03:18 +01:00
Antoine Pitrou
413d497247
Backport robustness fix for test_builtin
2011-11-06 02:51:25 +01:00
Antoine Pitrou
772add7e1a
Try to make the tty input() tests more robust
2011-11-06 02:37:42 +01:00
Antoine Pitrou
5ee9d8a8a2
Issue #13342 : input() used to ignore sys.stdin's and sys.stdout's unicode
...
error handler in interactive mode (when calling into PyOS_Readline()).
2011-11-06 00:38:45 +01:00
Antoine Pitrou
0d776b1ce8
Issue #13342 : input() used to ignore sys.stdin's and sys.stdout's unicode
...
error handler in interactive mode (when calling into PyOS_Readline()).
2011-11-06 00:34:26 +01:00
Petri Lehtinen
8e9f6c4251
Accept None as start and stop parameters for list.index() and tuple.index().
...
Closes #13340 .
2011-11-05 23:25:34 +02:00
Petri Lehtinen
c2f0a46111
Accept None as start and stop parameters for list.index() and tuple.index()
...
Closes #13340 .
2011-11-05 23:24:31 +02:00
Raymond Hettinger
68fb89fdb7
Fix whitespace
2011-11-05 13:43:01 -07:00
Raymond Hettinger
f1182cd4db
Merge
2011-11-05 13:39:57 -07:00
Raymond Hettinger
4e6bf41934
Improve Counter.__repr__() to not fail with unorderable values
2011-11-05 13:35:26 -07:00
Benjamin Peterson
878ce389a0
add introspection to range objects ( closes #9896 )
...
Patch by Daniel Urban.
2011-11-05 15:17:52 -04:00
Éric Araujo
03b0819389
Try to fix buildbot failures from #13193
2011-11-05 17:51:52 +01:00
Charles-François Natali
88c2e45367
asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
...
to poll(2): don't set them.
2011-11-05 14:16:01 +01:00
Petri Lehtinen
064e39330d
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:22:03 +02:00
Petri Lehtinen
395ca72380
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:21:16 +02:00
Petri Lehtinen
8c481b6212
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:46:10 +02:00
Petri Lehtinen
8c482ee955
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:44:59 +02:00
Amaury Forgeot d'Arc
9028a10144
Issue #13343 : Fix a SystemError when a lambda expression uses a global
...
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)
2011-11-04 22:29:24 +01:00
Amaury Forgeot d'Arc
97c1bef6a4
Issue #13343 : Fix a SystemError when a lambda expression uses a global
...
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)
2011-11-04 22:17:45 +01:00
Florent Xicluna
3dbb1f17cb
Fix test_urllib2 error on Windows in relation with issue #13287 .
2011-11-04 22:15:37 +01:00
Petri Lehtinen
c9f38462ee
Issue #3067 : Fix the error raised by locale.setlocale()
2011-11-04 22:22:03 +02:00
Petri Lehtinen
3c85fe07f4
Issue #3067 : Fix the error raised by locale.setlocale()
2011-11-04 22:21:07 +02:00
Martin v. Löwis
3d325191bf
Port code page codec to Unicode API.
2011-11-04 18:23:06 +01:00
Florent Xicluna
495dcbd5c1
Merge 3.2: issue #13140
2011-11-04 10:22:57 +01:00
Florent Xicluna
12b66b5217
Closes #13140 : Fix the daemon_threads attribute of ThreadingMixIn.
2011-11-04 10:16:28 +01:00
Florent Xicluna
54540ec917
Remove redundant imports.
2011-11-04 08:29:17 +01:00
Florent Xicluna
c53ae58954
Drop unused import in unittest package.
2011-11-04 08:25:54 +01:00
Victor Stinner
76a31a6bff
Cleanup decode_code_page_stateful() and encode_code_page()
...
* Fix decode_code_page_errors() result
* Inline decode_code_page() and encode_code_page_chunk()
* Replace the PyUnicodeObject type by PyObject
2011-11-04 00:05:13 +01:00
Florent Xicluna
a9e73640bf
Oversight in previous commit for test_pep277.
2011-11-03 23:44:15 +01:00
Florent Xicluna
65eb453d28
Use PEP-3151 exceptions for test_pep277.
2011-11-03 23:11:14 +01:00
Victor Stinner
65f51bb150
(Merge 3.2) Issue #10570 : curses.putp() is now expecting a byte string, instead
...
of a Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
2011-11-03 20:36:55 +01:00
Victor Stinner
b3bc7e764d
Issue #10570 : curses.putp() is now expecting a byte string, instead of a
...
Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
2011-11-03 20:35:40 +01:00
Éric Araujo
6fc41dd1e3
Merge 3.2
2011-11-03 16:45:33 +01:00
Éric Araujo
146f870916
Branch merge
2011-11-03 16:44:13 +01:00
Éric Araujo
9c2f42f253
Branch merge
2011-11-03 16:27:57 +01:00
Éric Araujo
7855a1abec
Actually check the contents of the file created by packaging’s bdist_dumb
2011-11-03 06:00:02 +01:00
Éric Araujo
e64052176d
Merge follow-up for #11254 and other changes from 3.2
2011-11-03 05:17:11 +01:00
Éric Araujo
880801501b
Improve byte-compilation in packaging to be independent of -O or -B.
...
The code I fixed to comply with PEP 3147 still had one bug: When run
under python -O, some paths for pyc files would be pyo, because I called
imp.cache_from_source without explicit debug_override argument in some
places, and under -O that would return .pyo (this is well explained in
the imp docs). Now all code (util.byte_compile, build_py, install_lib)
can create .pyo files according to options given by users,
without interference from the calling Python’s own optimize mode.
On a related topic, I also removed the code that prevented byte
compilation under python -B. The rationale is that packaging gives
control over the creation of pyc files to the user with its own explicit
option, and the behavior should not be changed if the calling Python
happens to run with -B for whatever reason. I will argue that this is a
bug fix and ask to be allowed to backport this change to distutils.
Finally, I moved one nugget of information about the --compile and
--optimize options from the source into the doc. It clears up a
misunderstanding that I (and maybe other people) had.
2011-11-03 05:08:28 +01:00
Éric Araujo
e2544bc909
Fix incorrect docstring I changed a while back.
...
New wording is taken straight from the PEP, so this time should be good
:)
2011-11-03 04:34:09 +01:00
Éric Araujo
c465b2f843
More fixes for PEP 3147 compliance in distutils ( #11254 )
2011-11-03 03:45:33 +01:00
Antoine Pitrou
ef297a8a35
Issue #13307 : fix bdist_rpm test failures
2011-11-03 02:46:52 +01:00
Antoine Pitrou
cb2f84a218
Issue #13307 : fix bdist_rpm test failures
2011-11-03 02:45:46 +01:00
Éric Araujo
dfd232898d
Minor code reorganization in one packaging test file
2011-11-03 00:20:03 +01:00
Éric Araujo
9ad81a3591
Fix typo “seperate”
2011-11-03 00:13:05 +01:00
Éric Araujo
3924230498
Fix typo
2011-11-03 00:08:48 +01:00
Victor Stinner
df5bccc8a3
(Merge 3.2) Issue #10570 : curses.tigetstr() is now expecting a byte string,
...
instead of a Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
2011-11-02 23:47:58 +01:00
Victor Stinner
2662133a05
Issue #10570 : curses.tigetstr() is now expecting a byte string, instead of a
...
Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
2011-11-02 23:45:29 +01:00
Charles-François Natali
cf85c300cf
test_asyncore: Actually try to received OOB data.
2011-11-02 20:30:59 +01:00
Charles-François Natali
b2cca00c14
Issue #13308 : Fix test_httpservers failures when run as root.
2011-11-02 19:36:02 +01:00
Charles-François Natali
f7ed9fc063
Issue #13308 : Fix test_httpservers failures when run as root.
2011-11-02 19:35:14 +01:00
Ezio Melotti
ca897e960a
#13295 : http.server now produces valid HTML 4.01 strict.
2011-11-02 19:33:29 +02:00
Éric Araujo
af2ffd75cf
Cleanups in distutils tests.
...
- Actually check the contents of the file created by bdist_dumb.
- Don’t use “RECORD” as filename for non-PEP 376 record file
- Don’t start method name with “_test”, it smells like a disabled test
method instead of an helper method
- Fix some idioms (assertIn, addCleanup)
2011-11-02 18:05:41 +01:00
Florent Xicluna
2fbc185209
Issue #13312 : skip the failing negative years for now.
2011-11-02 08:13:43 +01:00
Florent Xicluna
dfee6c8dee
Actually, there's more than one failing value. (changeset 9cb1b85237a9, issue #13312 ).
2011-11-02 03:22:15 +01:00
Florent Xicluna
e2a732e706
Issue #13312 : skip the single failing value for now.
2011-11-02 01:28:17 +01:00
Florent Xicluna
91d5193b3a
Closes #2892 : preserve iterparse events in case of SyntaxError.
2011-11-01 23:31:09 +01:00
Florent Xicluna
d1bd7f7730
Additional tests for negative years.
2011-11-01 23:42:05 +01:00
Florent Xicluna
f24e7e6c41
Merge 3.2: issue #2892
2011-11-01 23:33:14 +01:00
Ezio Melotti
f588dd60cc
Merge test improvements from 3.2.
2011-11-01 18:58:19 +02:00
Ezio Melotti
c1e73c30e9
Make sure that the tolerant parser still parses valid HTML correctly.
2011-11-01 18:57:15 +02:00
Florent Xicluna
725af4dc1d
Lowercase the test name, to run last.
2011-11-01 17:42:24 +01:00
Florent Xicluna
050c7e64cd
Replace temporary tests with the real test case for issue #13309 on Gentoo.
2011-11-01 16:58:54 +01:00
Senthil Kumaran
4c875a986f
'HTTPSHandler' and not the type.
2011-11-01 23:57:57 +08:00
Senthil Kumaran
0d54eb9bdc
Append HTTPSHandler to __all__ when it is available.
2011-11-01 23:49:46 +08:00
Senthil Kumaran
6c5bd40a3e
issue13287 - Define __all__ for urllib.request and urllib.error and expose only
...
the relevant module. Other cleanup improvements. Patch by flox.
2011-11-01 23:20:31 +08:00
Florent Xicluna
712b14fc2a
Troubleshoot issue #13309 on Gentoo buildbot.
2011-11-01 16:07:23 +01:00
Florent Xicluna
752c1d4c02
Add temporary tests to troubleshoot issue #13309 on Gentoo buildbot.
2011-11-01 15:12:34 +01:00
Florent Xicluna
bceb528af5
Test the year range supported by time.strftime() and time.asctime().
2011-11-01 14:11:34 +01:00
Ezio Melotti
629a2c336e
Merge test fixes from 3.2.
2011-11-01 15:02:16 +02:00
Ezio Melotti
b9a48f7144
Avoid reusing the same collector in the tests.
2011-11-01 15:00:59 +02:00
Ezio Melotti
829c3dac3b
#12008 : merge with 3.2.
2011-11-01 14:43:51 +02:00
Ezio Melotti
18b0e5b79b
#12008 : add a test.
2011-11-01 14:42:54 +02:00
Ezio Melotti
7de56f6a04
#670664 : Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``.
2011-11-01 14:12:22 +02:00
Ned Deily
316f573d9c
Issue #13304 : Skip test case if user site-packages disabled (-s or
...
PYTHONNOUSERSITE). (Patch by Carl Meyer)
2011-10-31 16:16:35 -07:00
Senthil Kumaran
ce260142c6
Fix issue 10817 - Fix urlretrieve function to raise ContentTooShortError
...
even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 01:35:17 +08:00
Jesus Cea
5032292f9e
Closes #13283 : removal of two unused variable in locale.py
2011-10-31 16:03:34 +01:00
Ned Deily
7aff451728
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
...
(Patch by Roger Serwy)
2011-10-30 20:01:35 -07:00
Raymond Hettinger
e584457e24
Issue 13274: Make the pure python code for heapq more closely match the C implementation for an undefined corner case.
2011-10-30 14:32:54 -07:00
Florent Xicluna
93dfee1dfc
Issue #13293 : Better error message when trying to marshal bytes using xmlrpc.client.
2011-10-30 20:22:25 +01:00
Florent Xicluna
c4fec937dc
Cleanup xmlrpc: remove obsolete comments, unused imports. Add test for bytes marshalling.
2011-10-30 20:19:32 +01:00
Florent Xicluna
3fa29f7cd7
Closes #13291 : NameError in xmlrpc package.
2011-10-30 20:18:50 +01:00
Ezio Melotti
f78869e47e
#13289 : fix typo.
2011-10-29 10:41:51 +03:00
Benjamin Peterson
b3b8ba6121
bring is_integer into tested existence
2011-10-28 19:42:48 -04:00
Barry Warsaw
46ae0efce1
- Issue #13218 : Fix test_ssl failures on Debian/Ubuntu.
2011-10-28 16:52:17 -04:00
Florent Xicluna
5d1155c08e
Closes #13258 : Use callable() built-in in the standard library.
2011-10-28 14:45:05 +02:00
Ezio Melotti
f50ffa94ab
#13273 : fix a bug that prevented HTMLParser to properly detect some tags when strict=False.
2011-10-28 13:21:09 +03:00
Petri Lehtinen
e119c403a1
Issue #10860 : Skip the new test if HTTPS is not available
2011-10-26 21:29:15 +03:00
Charles-François Natali
f8859e1808
Issue #10332 : multiprocessing: fix a race condition when a Pool is closed
...
before all tasks have completed.
2011-10-24 18:45:29 +02:00
Nick Coghlan
de31b191e5
Issue 1294232: Fix errors in metaclass calculation affecting some cases of metaclass inheritance. Patch by Daniel Urban.
2011-10-23 22:04:16 +10:00
Florent Xicluna
711f87ca7d
Issue #9168 : now smtpd is able to bind privileged port.
2011-10-20 23:03:43 +02:00
Senthil Kumaran
34d38dce11
urllib.request - syntax changes enhancing readability. By Éric Araujo
2011-10-20 02:48:01 +08:00
Senthil Kumaran
29fa9d4d68
3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:46:00 +08:00
Senthil Kumaran
1ef0c0349e
3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
...
semicolons. Patch by Ben Darnell and Petri Lehtinen.
2011-10-20 01:05:44 +08:00
Ezio Melotti
e130a52d8a
Remove duplication.
2011-10-19 10:58:56 +03:00
Łukasz Langa
a5a9a9c369
Fixes #10860 : Handle empty port after port delimiter in httplib
2011-10-18 21:17:39 +02:00
Antoine Pitrou
551ba20e8e
Issue #13188 : When called without an explicit traceback argument,
...
generator.throw() now gets the traceback from the passed exception's
`__traceback__` attribute. Patch by Petri Lehtinen.
2011-10-18 16:40:50 +02:00
Ezio Melotti
6bfecd1271
#12448 : smtplib now flushes stdout while running ``python -m smtplib``
...
in order to display the prompt correctly. Patch by Petri Lehtinen.
2011-10-18 13:20:07 +03:00
Mark Hammond
53e4a9a763
normalize whitespace in Lib/distutils/msvc9compiler.py
2011-10-17 11:35:31 +11:00
Mark Hammond
6c58b28f2f
Issue #7833 : Ext. modules built using distutils on Windows no longer get a manifest
2011-10-17 11:05:57 +11:00
Raymond Hettinger
4b779b3785
Issue 13177: Make tracebacks more readable by avoiding chained exceptions in the lru_cache.
2011-10-15 23:50:42 -07:00
Éric Araujo
181ae4baa1
Branch merge
2011-10-14 16:50:09 +02:00
Ezio Melotti
7903913fa6
#670664 : merge with 3.2.
2011-11-01 14:14:15 +02:00
Florent Xicluna
49ce06858b
Strengthen the tests for format '%Y', in relation with issue #13305 .
2011-11-01 12:56:14 +01:00
Ned Deily
d61f9d1715
Issue #13304 : Skip test case if user site-packages disabled (-s or
...
PYTHONNOUSERSITE). (Patch by Carl Meyer)
2011-10-31 16:22:53 -07:00
Florent Xicluna
2738a64621
Fix regression due to changeset 2096158376e5 (issue #13305 ).
2011-11-01 00:06:58 +01:00
Charles-François Natali
e695eec24a
Issue #13303 : Fix a race condition in the bytecode file creation.
2011-10-31 20:47:31 +01:00
Ross Lagerwall
59142db6d3
Issue #12797 : Added custom opener parameter to builtin open() and FileIO.open().
2011-10-31 20:34:46 +02:00
Senthil Kumaran
ab06e3f285
merge from 3.2 - Fix issue 10817 - Fix urlretrieve function to raise ContentTooShortError
...
even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 01:39:49 +08:00
Jesus Cea
1dca75f611
MERGE: Closes #13283 : removal of two unused variable in locale.py
2011-10-31 16:04:12 +01:00
Charles-François Natali
39648d11ab
test_asyncore: Enable tests of Unix domain sockets with poll().
2011-10-31 12:08:09 +01:00
Ned Deily
d1029c4853
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
...
(Patch by Roger Serwy)
2011-10-30 20:05:30 -07:00
Florent Xicluna
b6f019a080
Let's assume that the datetime module is always available.
2011-10-30 23:54:17 +01:00
Raymond Hettinger
385c803658
Merge
2011-10-30 14:33:31 -07:00
Florent Xicluna
75861df9ab
Fix User-Agent for the xmlrpc.client, and catch KeyboardInterrupt for the standalone xmlrpc.server.
2011-10-30 20:39:24 +01:00
Florent Xicluna
f70fd7092d
Merge 3.2
2011-10-30 20:24:40 +01:00
Charles-François Natali
fea6cb0285
Issue #5661 : on EPIPE/ECONNRESET, OS X returns the FD with the POLLPRI flag...
2011-10-29 14:29:39 +02:00
Charles-François Natali
d4621190c9
Issue #5661 : Add a test for ECONNRESET/EPIPE handling to test_asyncore. Patch
...
by Xavier de Gaye.
2011-10-29 12:45:56 +02:00
Ezio Melotti
39be383406
#13289 : merge with 3.2.
2011-10-29 10:44:59 +03:00
Benjamin Peterson
29037720d1
merge 3.2
2011-10-28 19:44:00 -04:00
Barry Warsaw
c21a81bf76
- Issue #13218 : Fix test_ssl failures on Debian/Ubuntu.
2011-10-28 17:08:12 -04:00
Florent Xicluna
46f5d146c1
Remove no-op code from previous commit.
2011-10-28 21:58:56 +02:00
Florent Xicluna
68f71a34f4
Simplify and remove few dependencies on 'errno', thanks to PEP 3151.
2011-10-28 16:06:23 +02:00
Florent Xicluna
aabbda5354
Merge 3.2
2011-10-28 14:52:29 +02:00
Ezio Melotti
91ec2e8a31
#13273 : merge with 3.2.
2011-10-28 13:23:57 +03:00