Victor Stinner
b84d723509
(Merge 3.2) Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
2011-11-22 01:50:07 +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