Antoine Pitrou
0c60381749
Add part of test_inspect test from 2.7
2012-01-18 17:40:18 +01:00
Nadeem Vawda
892b0b928d
Issue #13781 : Fix GzipFile to work with os.fdopen()'d file objects.
2012-01-18 09:25:58 +02:00
Jesus Cea
031605ad99
And yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name
2012-01-18 05:04:49 +01:00
Jesus Cea
1aa1cf3548
Yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name
2012-01-18 04:49:26 +01:00
Jesus Cea
6e35d417f7
Emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name
2012-01-18 04:27:37 +01:00
Jesus Cea
8874fd6bb0
Closes #13803 : Under Solaris, distutils doesn't include bitness in the directory name
2012-01-18 03:58:42 +01:00
Antoine Pitrou
2f828f2c88
Test running of code in a sub-interpreter
...
(prelude to issue #6531 ).
2012-01-18 00:21:11 +01:00
Antoine Pitrou
03757ec4a5
Issue #13589 : Fix some serialization primitives in the aifc module.
...
Patch by Oleg Plakhotnyuk.
2012-01-17 17:13:04 +01:00
Terry Jan Reedy
dc224f82c0
#6528 None, True, False are keywords in 3.x. Patch by Roger Serwy.
2012-01-16 03:20:27 -05:00
Benjamin Peterson
a846d0ac5e
explain why we need this grammar file ( closes #13766 )
2012-01-15 21:28:00 -05:00
Meador Inge
3388060127
Issue #13629 : Renumber the tokens in token.h to match the _PyParser_TokenNames indexes.
2012-01-15 19:15:36 -06:00
Terry Jan Reedy
7f53aea53b
#13039 allow proper deletion of '>>> ' in IDLE editor windows.
...
Patch by Roger Serwy.
2012-01-15 19:03:23 -05:00
Éric Araujo
73cec21af2
Stop ignoring RPMs in distutils' upload command ( #2945 ).
...
Bug reported by Hartmut Goebel and patch contributed by Carl Robben.
Carl tested the fix and we have a buildbot with rpm installed, so I’m
committing even though I could not run this test (but I do understand
the changed code :)
2012-01-15 02:48:55 +01:00
Meador Inge
b0ae0ac668
Issue #13786 : Remove unimplemented 'trace' long option from regrtest.py.
2012-01-14 11:50:33 -06:00
Meador Inge
3f55e59282
Issue #13725 : regrtest does not recognize -d flag.
...
Patch by Erno Tukia.
2012-01-14 09:12:55 -06:00
Senthil Kumaran
3ffd7ca041
Fix issue13726: -S accepts an argument just as --start.
2012-01-14 21:07:31 +08:00
Senthil Kumaran
c5c5a14577
Fix Issue #13642 : Unquote before b64encoding user:password during Basic Authentication.
2012-01-14 19:09:04 +08:00
Senthil Kumaran
9bbcb254db
Adding the -o option for Issue13726
2012-01-14 18:38:28 +08:00
Senthil Kumaran
bcfe56d77c
Issue13726 - Fix the ambiguous -S flag in regrtest. It is -o/--slow for printing the 10 slowest test.
2012-01-14 18:26:27 +08:00
Antoine Pitrou
bbf53614b7
test_strlit was never run
2012-01-12 22:36:48 +01:00
Antoine Pitrou
f7bfff0e42
Remove unused certificate from the test directory.
2012-01-10 23:45:54 +01:00
Terry Jan Reedy
ee91e0990a
#11906 Make test_argparse work interactively by removing extra space
...
in comparison string that argparse does not add when program name is blank.
2012-01-09 18:20:09 -05:00
Ross Lagerwall
66e2fb68ac
Issue #12364 : Fix a hang in concurrent.futures.ProcessPoolExecutor.
2012-01-08 08:29:40 +02:00
Charles-François Natali
ded0348c08
Issue #13502 : threading: Fix a race condition in Event.wait() that made it
...
return False when the event was set and cleared right after.
2012-01-07 18:24:56 +01:00
Lars Gustäbel
dee45e20f6
Issue #12926 : Fix a bug in tarfile's link extraction.
...
On platforms that do not support (symbolic) links, tarfile offers a
work-around and extracts a link in an archive as the regular file the link is
pointing to. On other platforms, this code was accidentally executed even
after the link had been successfully extracted which failed due to the already
existing link.
2012-01-05 18:48:06 +01:00
Vinay Sajip
cdf6cd9ff3
Closes #13699 . Skipped two tests if Python is optimised.
2012-01-05 11:45:31 +00:00
Senthil Kumaran
6497aa3e00
Issue13696 - Fix 302 Redirection for Relative urls.
2012-01-04 13:46:59 +08:00
Benjamin Peterson
a8d7037e32
merge 3.1
2012-01-03 16:24:39 -06:00
Benjamin Peterson
b462da8c0a
fix this to not depend on dictionary order
2012-01-03 16:23:11 -06:00
Antoine Pitrou
8f85f907e3
Issue #13636 : Weak ciphers are now disabled by default in the ssl module
...
(except when SSLv2 is explicitly asked for).
2012-01-03 22:46:48 +01:00
Charles-François Natali
366999a011
Issue #9975 : socket: Fix incorrect use of flowinfo and scope_id. Patch by
...
Vilmos Nebehaj.
2012-01-02 15:47:29 +01:00
Sandro Tosi
70efbefcc5
Issue #13594 : various fixes to aifc module; patch by Oleg Plakhotnyuk
2012-01-01 22:53:08 +01:00
Sandro Tosi
bdd5354700
Issue #13680 : add lowecase compression type to write header; patch by Oleg Plakhotnyuk
2012-01-01 18:04:37 +01:00
Antoine Pitrou
7c9907e565
Fix no-op tests in importlib.
2011-12-30 21:25:15 +01:00
Benjamin Peterson
0e61350d3a
propgate error in other conditions
2011-12-27 15:16:34 -06:00
Charles-François Natali
fe8039b3e5
Issue #13565 : Increase multiprocessing's server socket backlog, to avoid
...
dropped connections in case of simultaneous connection requests.
2011-12-23 19:06:48 +01:00
Senthil Kumaran
3075549d53
Minor code style improvements in http.server suggested in Issue13294.
2011-12-23 17:03:41 +08:00
Michael Foord
3ba95f8bd9
Metaclasses with metaclasses with a __dict__ descriptor can no longer trigger code execution with inspect.getattr_static.
...
Closes issue 11829.
2011-12-22 01:13:37 +00:00
Antoine Pitrou
65a3f4b8c5
Use context managers in test_ssl to simplify test writing.
2011-12-21 16:52:40 +01:00
Antoine Pitrou
28f8bee5c8
Issue #13645 : fix test_import failure when run immediately after test_coding.
2011-12-21 15:50:42 +01:00
Antoine Pitrou
86a8a9ae98
Issue #1785 : Fix inspect and pydoc with misbehaving descriptors.
...
Also fixes issue #13581 : `help(type)` wouldn't display anything.
2011-12-21 09:57:40 +01:00
Charles-François Natali
bf38315446
Followup to issue #11867 : Use socketpair(), since FreeBSD < 8 doesn't really
...
support multiprocessing.Event.
2011-12-20 11:48:22 +01:00
Antoine Pitrou
7ded21e917
Issue #5424 : add tests for inet_ntoa, inet_ntop, inet_aton and inet_pton.
...
Patch by Philipp Hagemeister.
2011-12-19 16:21:21 +01:00
Charles-François Natali
4ce2f36461
Issue #13453 : Try to increase some socket timeouts to make some buildbots stop
...
failing.
2011-12-19 16:12:23 +01:00
Victor Stinner
d208416a40
Issue #13628 : python-gdb.py is now able to retrieve more frames in the Python
...
traceback if Python is optimized.
* delay the lookup of the size_t type, it is not available at startup
* The second argument of the PyFrameObjectPtr constructor is optional, as
done in other constructors
* iter_builtins() and iter_globals() methods of PyFrameObjectPtr returns
an empty tuple instead of None if Python is optimized
* Fix py-bt and py-bt-full to handle correctly "optimized" frames
* Frame.get_pyop() tries to get the frame pointer from PyEval_EvalCodeEx()
if the pointer is optimized out in PyEval_EvalFrameEx()
2011-12-19 13:42:24 +01:00
Charles-François Natali
78ed83da46
Issue #11867 : Make test_mailbox.test_lock_conflict deterministic (and fix a
...
race condition).
2011-12-19 12:18:55 +01:00
Ezio Melotti
62f3d0300e
#13576 : add tests about the handling of (possibly broken) condcoms.
2011-12-19 07:29:03 +02:00
Michael Foord
a51623b160
Fix inspect.getattr_static to work on modules (again).
...
Closes issue 11813.
2011-12-18 22:01:40 +00:00
Antoine Pitrou
165b1283ff
Followup to #7502 : add __hash__ method and tests.
2011-12-18 20:20:17 +01:00
Antoine Pitrou
a74252633f
Merge
2011-12-18 19:28:33 +01:00
Antoine Pitrou
2bc801c4ea
Issue #7502 : Fix equality comparison for DocTestCase instances.
...
Patch by Cédric Krier.
2011-12-18 19:27:45 +01:00
Charles-François Natali
6d5f9e73d9
Issue #11870 : threading: Properly reinitialize threads internal locks and
...
condition variables to avoid deadlocks in child processes.
2011-12-18 18:35:09 +01:00
Charles-François Natali
cf53ae2171
Issue #8035 : urllib: Fix a bug where the client could remain stuck after a
...
redirection or an error.
2011-12-18 16:05:07 +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
Meador Inge
416f12ddb3
Issue #13591 : import_module potentially imports a module twice.
2011-12-14 22:23:46 -06: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
83ef2549de
Issue #13453 : Fix a race condition in test_poplib.
2011-12-14 19:28:56 +01: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
Benjamin Peterson
b870aa1255
we're always going to have gc
2011-12-10 12:44:25 -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
Charles-François Natali
13859bfedc
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
2011-12-10 13:16:44 +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
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
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
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
ed1ac587df
Correctly detect bzip2 compressed streams with blocksizes other than 900k.
2011-12-06 12:56:38 +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
Petri Lehtinen
9aa20affb6
Issue #13439 : Fix many errors in turtle docstrings.
2011-12-02 21:24:14 +02:00
Ezio Melotti
6cc5bf7656
#8414 : add more tests for "assert". Initial patch by Gregory Nofi.
2011-12-02 18:22:52 +02: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
b9bb1f4db3
Fix curses module for strict SysV implementation (without has_key function)
2011-11-29 00:03:50 +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
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
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
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
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
fb36b3f6a0
Issue #12618 : fix py_compile unit tests to handle different drives on Windows
2011-11-26 11:37:02 -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
11e381310b
Issue #13380 : add an internal function for resetting the ctypes caches
2011-11-25 22:33:32 -06: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
Senthil Kumaran
f27be5c60b
testFnNames is assigned twice.
2011-11-25 02:08:39 +08:00
Victor Stinner
b3f8268031
Issue #13436 : Fix unsetenv() test on Windows
2011-11-22 22:30:19 +01:00
Victor Stinner
896f4714f4
Merge branch 3.2
2011-11-22 22:22:26 +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
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
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
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
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
Ezio Melotti
7f78ddc3ad
#11112 : Fix typo in a base class in test_socket.
2011-11-18 18:33:14 +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
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
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
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
7abe61f6b5
Restore smtpd.DEBUGSTREAM at the end of test_smtpd.
...
(backport of 6b9f547e92d8)
2011-11-12 20:36:29 +01: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
8f0ffe587b
Issue #13193 : fix distutils.filelist.FileList under Windows
2011-11-12 01:20:45 +01:00
Florent Xicluna
992d9e081f
Fix few typos.
2011-11-11 19:35:42 +01:00
Brian Curtin
675f6b87cd
Fix #13384 . Remove __future__ import in 3.x code.
2011-11-11 09:37:25 -06: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
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
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
Vinay Sajip
3bd5638736
Closes #13361 : Raise correct exception type.
2011-11-07 10:15:08 +00:00
Vinay Sajip
61b787e6dd
Closes #13661 : Check added for type of logger name.
2011-11-07 08:53:03 +00: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
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
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
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
4e6bf41934
Improve Counter.__repr__() to not fail with unorderable values
2011-11-05 13:35:26 -07:00
Petri Lehtinen
395ca72380
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:21:16 +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
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
Petri Lehtinen
3c85fe07f4
Issue #3067 : Fix the error raised by locale.setlocale()
2011-11-04 22:21:07 +02:00
Florent Xicluna
12b66b5217
Closes #13140 : Fix the daemon_threads attribute of ThreadingMixIn.
2011-11-04 10:16:28 +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
9c2f42f253
Branch merge
2011-11-03 16:27:57 +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
cb2f84a218
Issue #13307 : fix bdist_rpm test failures
2011-11-03 02:45:46 +01:00
Éric Araujo
3924230498
Fix typo
2011-11-03 00:08:48 +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
f7ed9fc063
Issue #13308 : Fix test_httpservers failures when run as root.
2011-11-02 19:35:14 +01: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
91d5193b3a
Closes #2892 : preserve iterparse events in case of SyntaxError.
2011-11-01 23:31:09 +01:00
Ezio Melotti
c1e73c30e9
Make sure that the tolerant parser still parses valid HTML correctly.
2011-11-01 18:57:15 +02:00
Ezio Melotti
b9a48f7144
Avoid reusing the same collector in the tests.
2011-11-01 15:00:59 +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
Lars Gustäbel
ac3d137a30
Issue #13158 : Fix decoding and encoding of base-256 number fields in tarfile.
...
The nti() function that converts a number field from a tar header to a number
failed to decode GNU tar specific base-256 fields. I also added support for
decoding and encoding negative base-256 number fields.
2011-10-14 12:46:40 +02:00
Victor Stinner
82ac9bcdb3
Issue #13025 : mimetypes is now reading MIME types using the UTF-8 encoding,
...
instead of the locale encoding.
2011-10-14 03:03:35 +02:00
Éric Araujo
2336c8553c
Increase test coverage for distutils.filelist ( #11751 ).
...
Patch by Justin Love.
2011-10-11 02:45:51 +02:00
Éric Araujo
a5bc34fa00
Branch merge
2011-10-09 07:32:35 +02:00
Éric Araujo
5819dcc0d2
Add tests for Unicode handling in distutils’ check and register ( #13114 )
2011-10-09 07:25:33 +02:00
Antoine Pitrou
c0bbe7d38a
test_unicode was forgetting to run the common string tests for str.find()
2011-10-08 22:41:35 +02:00
Éric Araujo
04ea9533c1
Fix docstring of distutils.util.byte_compile (followup for #11254 )
2011-10-08 03:02:37 +02:00
Éric Araujo
fea2d04bb9
Fix distutils.sysconfig.get_makefile_filename when prefix != exec-prefix
2011-10-08 01:56:52 +02:00
Éric Araujo
de504550af
Fix test_sysconfig when prefix != exec-prefix ( #9100 ).
...
I tested this manually; it would be great to have buildbots using
installed Pythons, including Pythons configured with different prefix
and exec-prefix.
Reported by Zsolt Cserna.
2011-10-08 01:55:07 +02:00
Éric Araujo
47a4521ece
Fix distutils byte-compilation to comply with PEP 3147 ( #11254 ).
...
Patch by Jeff Ramnani. Tested with -B, -O and -OO.
2011-10-08 00:34:13 +02:00
Éric Araujo
db95c7a60c
Make C code in one distutils test comply with ISO C ( #10359 ).
...
Patch by Hallvard B Furuseth.
2011-10-07 23:13:45 +02:00
Barry Warsaw
de8c723ddd
Merged
2011-10-07 15:16:20 -04:00
Ned Deily
7010a07bd0
Issue #7367 : Ensure test directory always gets removed.
2011-10-07 12:01:40 -07:00
Barry Warsaw
78f89d8c38
- Issue #11250 : Back port fix from 3.3 branch, so that 2to3 can handle files
...
with line feeds. This was ported from the sandbox to the 3.3 branch, but
didn't make it into 3.2.
- Re-enable lib2to3's test_parser.py tests, though with an expected failure
(see issue 13125).
2011-10-07 14:44:49 -04:00
Ned Deily
ed27df7aaa
Issue #7367 : Fix pkgutil.walk_paths to skip directories whose
...
contents cannot be read.
2011-10-06 14:19:08 -07:00
Ned Deily
caf5a22c5f
Issue #7367 : Add test case to test_pkgutil for walking path with
...
an unreadable directory.
2011-10-06 14:19:06 -07:00
Ned Deily
92a81a1eec
Issue #7425 : Refactor test_pydoc test case for '-k' behavior and add
...
new test cases for importing bad packages and unreadable packages dirs.
2011-10-06 14:19:03 -07:00
Antoine Pitrou
eeb7eea1f9
Issue #12911 : Fix memory consumption when calculating the repr() of huge tuples or lists.
...
This introduces a small private API for this common pattern.
The issue has been discovered thanks to Martin's huge-mem buildbot.
2011-10-06 18:57:27 +02:00
Éric Araujo
bb2095f1e2
Branch merge
2011-10-06 13:10:34 +02:00
Amaury Forgeot d'Arc
3e961a5fd1
Enable the only tests for sys.gettrace
2011-10-05 22:36:05 +02:00
Charles-François Natali
42c28cdd1d
Issue #13070 : Fix a crash when a TextIOWrapper caught in a reference cycle
...
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.
2011-10-05 19:53:43 +02:00
Senthil Kumaran
1b7da519b0
Issue13104 - Fix urllib.request.thishost() utility function.
2011-10-06 00:32:02 +08:00
Senthil Kumaran
ad87fa6719
Issue #13073 - Address the review comments made by Ezio.
2011-10-05 23:26:49 +08:00
Éric Araujo
63ba97b586
Fix typo and case in a recently added test
2011-10-05 01:29:22 +02:00
Charles-François Natali
035018d078
os.geteuid() may not be available...
2011-10-04 23:35:47 +02:00
Charles-François Natali
79164c8c71
Issue #11956 : Always skip test_import.test_unwritable_directory when run as
...
root, since the semantics varies across Unix variants.
2011-10-04 20:40:58 +02:00
Charles-François Natali
a13b1faa78
Issue #11956 : Skip test_import.test_unwritable_directory on FreeBSD when run as
...
root (directory permissions are ignored).
2011-10-04 19:17:26 +02:00
Antoine Pitrou
1e44fecc52
Issue #13087 : BufferedReader.seek() now always raises UnsupportedOperation
...
if the underlying raw stream is unseekable, even if the seek could be
satisfied using the internal buffer. Patch by John O'Connor.
2011-10-04 12:26:20 +02:00
Antoine Pitrou
94190bb6e7
Start fixing test_bigmem:
...
- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
2011-10-04 10:22:36 +02:00
Antoine Pitrou
ffd41d9f10
Issue #7689 : Allow pickling of dynamically created classes when their
...
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
2011-10-04 09:23:04 +02:00
Meador Inge
1efb33a682
Issue #12881 : ctypes: Fix segfault with large structure field names.
2011-10-03 21:44:22 -05:00
Antoine Pitrou
86aed0bbc6
Fix ResourceWarnings in the TIPC socket tests.
2011-10-02 23:33:19 +02:00
R David Murray
791744b070
#4147 : minidom's toprettyxml no longer adds whitespace to text nodes.
...
Patch by Dan Kenigsberg.
2011-10-01 16:19:51 -04:00
Antoine Pitrou
d8c347a8de
Issue #13034 : When decoding some SSL certificates, the subjectAltName extension could be unreported.
2011-10-01 19:20:25 +02:00
Victor Stinner
53ffdc53bf
Issue #7732 : Don't open a directory as a file anymore while importing a
...
module. Ignore the direcotry if its name matchs the module name (e.g.
"__init__.py") and raise a ImportError instead.
2011-09-23 18:54:40 +02:00
Victor Stinner
da6eb5305f
Issue #12931 : Add a test with Unicode URI to test_xmlrpc
2011-09-23 01:29:44 +02:00
Charles-François Natali
a49ed7650a
Fix a race condition in test_socket.ThreadableTest: the client is reported as
...
ready before having been set up.
2011-09-21 22:03:58 +02:00
Charles-François Natali
e51c8dad1a
Issue #12981 : test_multiprocessing: catch ImportError when importing
...
multiprocessing.reduction, which may not be available (e.g. if the OS doesn't
support FD passing over Unix domain sockets).
2011-09-21 18:48:21 +02:00
Jesus Cea
4507e6456e
Close #13022 : _multiprocessing.recvfd() doesn't check that file descriptor was actually received
2011-09-21 03:53:25 +02:00
Victor Stinner
d0b10a6435
test_multiprocessing removes temporary files
2011-09-21 01:10:29 +02:00
Victor Stinner
18d15cb665
test_httplib removes temporary files
2011-09-21 01:09:04 +02:00
Jesus Cea
bc566b00ad
Close #13007 : whichdb should recognize gdbm 1.9 magic numbers
2011-09-19 17:08:18 +02:00
Ned Deily
79746426c4
Issue #9871 : Prevent IDLE 3 crash when given byte stings
...
with invalid hex escape sequences, like b'\x0'.
(Original patch by Claudiu Popa.)
2011-09-14 14:49:14 -07:00
Senthil Kumaran
d71bbf9fd5
Fix issue12938 - Update the docstring of html.escape. Include the information on single quote.
2011-09-13 07:14:13 +08:00
Senthil Kumaran
305a68eb4a
Add the quote_plus call in the test.
2011-09-13 06:40:27 +08:00
Amaury Forgeot d'Arc
bbe46d63ee
Issue #12483 : ctypes: Fix a crash when the destruction of a callback
...
object triggers the garbage collector.
2011-09-12 21:03:36 +02:00
Éric Araujo
1d7deafeea
Branch merge
2011-09-12 17:15:26 +02:00
Éric Araujo
647ef8cd68
Wrap pydoc output under 80 characters
2011-09-11 00:43:20 +02:00
Éric Araujo
13e8c8e721
Fix determination of Metadata version ( #8933 ). Patch by Filip Gruszczyński.
2011-09-10 01:51:40 +02:00
Éric Araujo
fce67fcd84
Slight cleanup in distutils test_dist.
...
I have tests to add in this file and it’s always nice to start from a
clean base.
2011-09-10 01:34:44 +02:00
Jesus Cea
da752d80c8
Fix issue #12948 : multiprocessing test failures can hang the buildbots
2011-09-09 22:15:16 +02:00
Jesus Cea
94f964f810
Close issue #12948 : multiprocessing test failures can hang the buildbots
2011-09-09 20:26:57 +02:00
Victor Stinner
a1bea6e10c
Issue #9561 : distutils now reads and writes egg-info files using UTF-8
...
instead of the locale encoding.
2011-09-05 23:44:56 +02:00
Victor Stinner
a404b49321
Issue #12326 : Remove plat-linux3 directory
...
sys.platform is now always 'linux2' on Linux (even on Linux 3)
2011-09-05 21:38:42 +02:00
Éric Araujo
bcf99ac665
Branch merge
2011-09-05 17:44:07 +02:00
Lars Gustäbel
2e7ddd374b
Issue #12841 : Fix tarfile extraction of non-existent uids/gids.
...
tarfile unnecessarily checked the existence of numerical user and group ids on
extraction. If one of them did not exist the respective id of the current user
(i.e. root) was used for the file and ownership information was lost. (Patch
by Sebastien Luttringer)
2011-09-05 16:58:14 +02:00
Ezio Melotti
d9e0b068af
#12888 : Fix a bug in HTMLParser.unescape that prevented it to escape more than 128 entities. Patch by Peter Otten.
2011-09-05 17:11:06 +03:00
Éric Araujo
17b288cdab
Branch merge
2011-09-05 01:53:52 +02:00
Georg Brandl
3484a8771c
Merge with release clone.
2011-09-04 08:35:54 +02:00
Benjamin Peterson
f6f3a35447
add a __dict__ descr for IOBase ( closes #12878 )
2011-09-03 09:26:20 -04:00
Éric Araujo
cfbd630a27
Warn instead of crashing because of invalid path in MANIFEST.in ( #8286 ).
...
sdist used to crash with a full traceback dump instead of printing a
nice warning with the faulty line number.
2011-09-03 00:42:04 +02:00
Éric Araujo
32e2915da5
Enable catching WARN-level logging messages in distutils' test_sdist
2011-09-03 00:28:43 +02:00
Amaury Forgeot d'Arc
02dd539dbb
Issue #12764 : Fix a crash in ctypes when the name of a Structure field is not
...
a string.
2011-09-02 20:39:40 +02:00
Éric Araujo
d9e1789364
Branch merge
2011-09-02 17:30:36 +02:00
Victor Stinner
979482a315
Issue #12636 : IDLE reads the coding cookie when executing a Python script.
2011-09-02 01:00:40 +02:00
Victor Stinner
85c6772aec
IDLE: fix some RessourceWarning, reuse tokenize.open()
2011-09-02 00:57:04 +02:00
Éric Araujo
024de54fc2
Fix typo (was build) and remove redundancy in docstring
2011-09-01 23:37:56 +02:00
Éric Araujo
8dad18764d
Remove obsolete comment
2011-09-01 22:06:23 +02:00
Antoine Pitrou
a762285831
Issue #12802 : the Windows error ERROR_DIRECTORY (numbered 267) is now
...
mapped to POSIX errno ENOTDIR (previously EINVAL).
2011-09-01 21:37:43 +02:00
Éric Araujo
3b371cfeb8
#10454 : a few edits to compileall help messages
2011-09-01 20:00:33 +02:00
Éric Araujo
48e484fdde
Fix test_sysconfig when run from a Python installed under /site ( #10086 ).
...
Patch by Hallvard B Furuseth.
2011-08-31 16:48:17 +02:00
Antoine Pitrou
e897e95880
Try to fix one of the bigmem tests in test_pickle
2011-08-30 23:39:34 +02:00
Amaury Forgeot d'Arc
faecc38809
Issue #11241 : subclasses of ctypes.Array can now be subclassed.
2011-08-30 22:02:51 +02:00
Amaury Forgeot d'Arc
326e189410
Issue #9651 : Fix a crash when ctypes.create_string_buffer(0) was passed to
...
some functions like file.write().
2011-08-30 21:40:20 +02:00
Éric Araujo
caa745e7ca
Branch merge
2011-08-30 16:05:31 +02:00
Antoine Pitrou
55549ec476
Issue #12847 : Fix a crash with negative PUT and LONG_BINPUT arguments in
...
the C pickle implementation.
2011-08-30 00:27:10 +02:00
Antoine Pitrou
82be19f889
Issue #11564 : Avoid crashes when trying to pickle huge objects or containers
...
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
2011-08-29 23:09:33 +02:00
Éric Araujo
fbe37dfffe
Make bdist_* commands respect --skip-build passed to bdist ( #10946 )
2011-08-29 21:48:39 +02:00
Antoine Pitrou
d54fa555cb
Make tests faster by reaping threads only at the end
2011-08-28 01:23:52 +02:00
Antoine Pitrou
6b2e160d27
Provide a better diagnosis on socket errors
2011-08-28 01:20:42 +02:00
Nadeem Vawda
c1fba3ea0c
Make regrtest complain when -M and -j are used together.
...
-j doesn't pass the memlimit on to child processes, so this doesn't work at
present, and even if it did, running multiple bigmem tests at once would
usually not be desirable (since you generally want to devote as much of the
available RAM as possible to each test).
2011-08-27 15:22:05 +02:00
Éric Araujo
2f24fda195
Branch merge
2011-08-26 16:30:22 +02:00
Éric Araujo
c686167298
Turn two ifs into one in the code I commited a few days ago
2011-08-26 00:03:22 +02:00
Antoine Pitrou
08e544e27b
Issue #12333 : fix test_distutils failures under Solaris and derivatives
2011-08-25 18:32:02 +02:00
Georg Brandl
b0993bc78d
Bump to 3.2.2.
2011-09-03 11:17:55 +02:00
Georg Brandl
f1961e8b5f
Regenerate pydoc topics.
2011-09-03 10:37:09 +02:00
Éric Araujo
d5a9811dbe
Make bdist_* commands respect --skip-build passed to bdist ( #10946 )
2011-08-29 21:48:39 +02:00
Antoine Pitrou
4fc80b62ba
Issue #12333 : fix test_distutils failures under Solaris and derivatives
2011-08-25 18:32:02 +02:00
Éric Araujo
c3085aa77b
Fix distutils tests on Windows ( #12678 ).
...
- First, support.fixup_build_ext (already used to set proper
library_dirs value under Unix shared builds) gains the ability to
correctly set the debug attribute under Windows debug builds.
- Second, the filename for the extension module gets a _d suffix under
debug builds.
- Third, the test code properly puts our customized build_ext object
into an internal dictionary to make sure that the install command will
later use our object instead of re-creating one. That’s the downside
of using low-level APIs in our test code: we have to manually push
knobs and turn handles that would otherwise be handled behind the
scenes.
Thanks to Nadeem for the testing.
2011-08-24 01:29:10 +02:00
Éric Araujo
175eb995d3
Fix distutils tests on Windows ( #12678 ).
...
- First, support.fixup_build_ext (already used to set proper
library_dirs value under Unix shared builds) gains the ability to
correctly set the debug attribute under Windows debug builds.
- Second, the filename for the extension module gets a _d suffix under
debug builds.
- Third, the test code properly puts our customized build_ext object
into an internal dictionary to make sure that the install command will
later use our object instead of re-creating one. That’s the downside
of using low-level APIs in our test code: we have to manually push
knobs and turn handles that would otherwise be handled behind the
scenes.
Thanks to Nadeem for the testing.
2011-08-24 01:29:10 +02:00
Antoine Pitrou
7a084105a0
Merge
2011-08-23 19:49:13 +02:00
Charles-François Natali
6cea35a8e3
Issue #12821 : Fix test_fcntl failures on OpenBSD 5.
2011-08-23 19:46:46 +02:00
Antoine Pitrou
bcb39d4846
Issue #11657 : Fix sending file descriptors over 255 over a multiprocessing Pipe.
...
Also added some tests.
2011-08-23 19:46:22 +02:00
Antoine Pitrou
5bd8b8d80f
A warning doesn't equate a failed test
...
(this broken -F with e.g. test_multiprocessing)
2011-08-23 19:32:26 +02:00
Ezio Melotti
a5c92b4714
Fix indentation and add a skip decorator.
2011-08-23 00:37:08 +03:00
Ezio Melotti
93e7afc5d9
#9200 : The str.is* methods now work with strings that contain non-BMP characters even in narrow Unicode builds.
2011-08-22 14:08:38 +03:00
Nadeem Vawda
ce9da2ffa6
Issue #12678 : Fix distutils sdist test on Windows.
...
Patch by Jeremy Kloth.
2011-08-21 22:35:41 +02:00
Nadeem Vawda
3d3bc81219
Issue #12678 : Fix distutils sdist test on Windows.
...
Patch by Jeremy Kloth.
2011-08-21 22:35:41 +02:00
Éric Araujo
a031abc166
Fix distutils test_install for shared CPython builds
2011-08-21 17:03:19 +02:00
Éric Araujo
8c973189b5
Fix distutils test_install for shared CPython builds
2011-08-21 17:03:19 +02:00
Éric Araujo
6e3ad8736e
Factor out the build_ext fixup for shared Python builds.
...
I need this to fix the failing test_install.
2011-08-21 17:02:07 +02:00
Éric Araujo
5fa8e7a559
Add missing name in shutil
2011-08-21 14:29:18 +02:00
Éric Araujo
52b201f0df
Add missing closing paren in docstring (thanks Ezio)
2011-08-21 12:53:37 +02:00
Sandro Tosi
83f7d347d5
#5301 : add image/vnd.microsoft.icon (.ico) MIME type
2011-08-21 00:16:18 +02:00
Éric Araujo
ff531461e0
Branch merge
2011-08-20 19:55:58 +02:00
Antoine Pitrou
e05565ec5a
Issue #12213 : Fix a buffering bug with interleaved reads and writes that
...
could appear on BufferedRandom streams.
2011-08-20 14:39:23 +02:00
Antoine Pitrou
a370fcf3b2
Issue #12791 : Break reference cycles early when a generator exits with an exception.
2011-08-20 14:15:03 +02:00
Éric Araujo
e1e1331a49
Dedent example in docstring
2011-08-20 07:25:39 +02:00
Éric Araujo
6b32ecff20
Add a test for extension modules in the distutils record file.
...
I made a note a month ago that install --record wrote incorrect entries
for extension modules (I think the problem was that the first character
of the file was stripped), so I’m now adding a test to try to reproduce
that in the current versions.
2011-08-20 07:08:51 +02:00
Éric Araujo
1772541085
Add a test for extension modules in the distutils record file.
...
I made a note a month ago that install --record wrote incorrect entries
for extension modules (I think the problem was that the first character
of the file was stripped), so I’m now adding a test to try to reproduce
that in the current versions.
2011-08-20 07:08:51 +02:00
Éric Araujo
3c2ec8e52b
Rework test_record a bit to make the test more exact
2011-08-20 07:00:41 +02:00
Éric Araujo
e74e3cf1e1
Factor out the build_ext fixup for shared Python builds.
...
I need this to fix the failing test_install.
2011-08-21 17:02:07 +02:00
Éric Araujo
9358bfdaff
Rework test_record a bit to make the test more exact
2011-08-20 07:00:41 +02:00
Éric Araujo
fba5a94342
Refactor the copying of xxmodule.c in distutils tests ( #12141 ).
...
I need to copy this file in another test too, so I moved the support
code to distutils.tests.support and improved it:
- don’t skip when run from the Lib/distutils/tests directory
- use proper skip machinery instead of custom print/return/test suite
fiddling.
2011-08-20 06:27:18 +02:00
Amaury Forgeot d'Arc
4cfb42dd2d
Issue #9651 : Fix a crash when ctypes.create_string_buffer(0) was passed to
...
some functions like file.write().
2011-08-30 21:40:20 +02:00
Nadeem Vawda
0c97e5f36a
Make regrtest complain when -M and -j are used together.
...
-j doesn't pass the memlimit on to child processes, so this doesn't work at
present, and even if it did, running multiple bigmem tests at once would
usually not be desirable (since you generally want to devote as much of the
available RAM as possible to each test).
2011-08-27 15:22:05 +02:00
Antoine Pitrou
b897168eb6
A warning doesn't equate a failed test
...
(this broken -F with e.g. test_multiprocessing)
2011-08-23 19:32:26 +02:00
Éric Araujo
7cc1fb073d
Add missing name in shutil
2011-08-21 14:29:18 +02:00
Sandro Tosi
d318293295
#5301 : add image/vnd.microsoft.icon (.ico) MIME type
2011-08-21 00:16:18 +02:00
Éric Araujo
def15dafda
Refactor the copying of xxmodule.c in distutils tests ( #12141 ).
...
I need to copy this file in another test too, so I moved the support
code to distutils.tests.support and improved it:
- don’t skip when run from the Lib/distutils/tests directory
- use proper skip machinery instead of custom print/return/test suite
fiddling.
2011-08-20 06:27:18 +02:00
Antoine Pitrou
20db51108c
Fix typo in test names
2011-08-19 20:32:34 +02:00
Éric Araujo
57bee66c03
Branch merge
2011-08-19 14:22:28 +02:00
Vinay Sajip
2da23caec0
Issue #12780 : Removed checks in logging for .pyc/.pyo in __file__.
2011-08-19 07:14:40 +01:00
Nadeem Vawda
0d7cda3e63
Fix ResourceWarnings in test_subprocess.
2011-08-19 05:12:01 +02:00
Éric Araujo
43a7ee1f3b
Make logging call lazy
2011-08-19 02:55:11 +02:00
Charles-François Natali
72d161af51
Issue #12650 : fix failures on some buildbots, when a subprocess takes a long
...
time to spawn.
2011-08-19 00:24:00 +02:00
Charles-François Natali
134a8baed9
Issue #12650 : Fix a race condition where a subprocess.Popen could leak
...
resources (FD/zombie) when killed at the wrong time.
2011-08-18 18:49:39 +02:00
Ezio Melotti
ee8d998ecf
#12266 : Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.
2011-08-15 09:09:57 +03:00
Georg Brandl
d88e5af061
Merge with cpython.
2011-08-13 11:54:33 +02:00
Georg Brandl
3abb372c81
Fix #11513 : wrong exception handling for the case that GzipFile itself raises an IOError.
2011-08-13 11:48:12 +02:00
Georg Brandl
b3f0ce4d1e
Bump version to 3.2.2rc1.
2011-08-13 11:34:58 +02:00
Georg Brandl
1db1d14e11
Update pydoc topics and suspicious ignore.
2011-08-13 11:33:35 +02:00
Benjamin Peterson
963e40256a
tokenize is just broken on test_pep3131.py
2011-08-13 00:33:21 -05:00
Benjamin Peterson
be66287e20
normalization is different between unicode builds, so use a new non-BMP char and add normalization test
2011-08-12 23:35:34 -05:00
Benjamin Peterson
f413b80806
in narrow builds, make sure to test codepoints as identifier characters ( closes #12732 )
...
This fixes the use of Unicode identifiers outside the BMP in narrow builds.
2011-08-12 22:17:18 -05:00
Éric Araujo
28d39a0c08
Branch merge
2011-08-12 17:40:25 +02:00
Antoine Pitrou
f6c7a8595e
Issue #12687 : Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles.
2011-08-11 21:04:02 +02:00
Senthil Kumaran
962fed9101
Fix closes Issue10087 - fixing the output of calendar display in the html format. Patch by Chris Lambacher. Test Contributed by catherine.
2011-08-11 09:22:52 +08:00
Éric Araujo
ef1e94a848
Test pipes.quote with a few non-ASCII characters (see #9723 ).
...
That pipes.quote thinks all non-ASCII characters need to be quoted may
be a bug, but right now I’m committing this test to make sure I haven’t
introduced a behavior change in 3.3 when I simplified the code to use a
regex (in 5966eeb0457d).
2011-08-09 23:03:43 +02:00
Sandro Tosi
2a389e4601
#12677 : correct turtle orientation in doc
2011-08-07 17:12:19 +02:00
Senthil Kumaran
89976f1cdc
Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
2011-08-06 12:27:40 +08:00
Ned Deily
e5cad23a92
Issue #12540 : Prevent zombie IDLE processes on Windows due to changes
...
in os.kill(). Original patch by Eli Bendersky.
2011-08-02 18:47:13 -07:00
Senthil Kumaran
7ce71f6496
change the redundant svn scheme urljoin test case to svn+ssh scheme.
2011-08-03 22:08:46 +08:00
Senthil Kumaran
56ee6d1820
merged heads
2011-08-03 18:46:24 +08:00
Senthil Kumaran
2a157d2a3d
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
2011-08-03 18:37:22 +08:00
Georg Brandl
25e2cd1388
Fix spacing in string literal.
2011-08-03 08:27:00 +02:00
Senthil Kumaran
eb71ad4c71
Fix closes Issue12676 - Invalid identifier used in TypeError message in http.client.
...
Reported by Popa Claudiu and Patch by Santoso Wijaya.
2011-08-02 18:33:41 +08:00
Stefan Krah
f187a0230b
Skip test_getsetlocale_issue1813() on Fedora due to setlocale() bug.
...
See: https://bugzilla.redhat.com/show_bug.cgi?id=726536
2011-08-02 01:06:16 +02:00
Éric Araujo
ccf03a1cdc
Fix resource warning when looking at turtledemo’s help ( #12295 )
2011-08-01 17:29:36 +02:00
Éric Araujo
2ffea0e8d7
Branch merge
2011-08-01 14:43:45 +02:00
Éric Araujo
548c054fb7
Stop trying to write into the stdlib during lib2to3 tests ( #12331 ).
...
This prevents tests from failing when run from a Python installed in a
read-only directory.
2011-07-31 17:58:46 +02:00
Senthil Kumaran
e324c57367
using support.transient_internet helper method in the urllib2net test.
2011-07-31 11:45:14 +08:00
Éric Araujo
ab7c1b3f11
Fix regression with distutils MANIFEST handing ( #11104 , #8688 ).
...
The changed behavior of sdist in 3.1 broke packaging for projects that
wanted to use a manually-maintained MANIFEST file (instead of having a
MANIFEST.in template and letting distutils generate the MANIFEST).
The fixes that were committed for #8688 (76643c286b9f by Tarek and
d54da9248ed9 by me) did not fix all issues exposed in the bug report,
and also added one problem: the MANIFEST file format gained comments,
but the read_manifest method was not updated to handle (i.e. ignore)
them. This changeset should fix everything; the tests have been
expanded and I successfully tested the 2.7 version with Mercurial, which
suffered from this regression.
I have grouped the versionchanged directives for these bugs in one place
and added micro version numbers to help users know the quirks of the
exact version they’re using.
Initial report, thorough diagnosis and patch by John Dennis, further
work on the patch by Stephen Thorne, and a few edits and additions by
me.
2011-07-31 04:06:12 +02:00
Antoine Pitrou
b9c73e8cf0
Issue #12626 : In regrtest, allow to filter tests using a glob filter
...
with the `-m` (or `--match`) option. This works with all test cases
using the unittest module. This is useful with long test suites
such as test_io or test_subprocess.
2011-07-29 23:53:38 +02:00
Charles-François Natali
def35435ee
Issue #12464 : tempfile.TemporaryDirectory.cleanup() should not follow symlinks:
...
fix it. Patch by Petri Lehtinen.
2011-07-29 18:59:24 +02:00
Éric Araujo
e64e51bfa7
Make “pydoc somebuiltin.somemethod” work ( #8887 )
2011-07-29 17:03:55 +02:00
Éric Araujo
158d7696f3
Branch merge
2011-07-29 14:24:08 +02:00
Raymond Hettinger
3a081f526d
Issue 12514: Use try/finally to assure that timeit restores GC when done.
2011-07-29 00:02:04 -07:00
Éric Araujo
cf534817ad
Branch merge
2011-07-28 23:08:11 +02:00
Éric Araujo
fc662ddda2
Merge profile docs followup ( #12417 ) from 3.1
2011-07-28 23:00:14 +02:00
Éric Araujo
ee19c772cb
Remove mentions of previous license in profile module docs ( #12417 followup).
...
Also remove an extra docstring.
2011-07-28 22:56:24 +02:00
Senthil Kumaran
7c9719cf74
Fix closes Issue11439 Remove the SVN keywords from the code as it is no longer applicable in hg. Patch Contributed by Neil Muller.
2011-07-28 22:32:49 +08:00
Charles-François Natali
d4d1d068dc
Issue #11871 : In test_threading.BarrierTests, bump the default barrier timeout
...
to avoid timing-dependent failures.
2011-07-27 21:26:42 +02:00
Charles-François Natali
27c4e88552
Issue #12603 : Fix pydoc.synopsis() on files with non-negative st_mtime.
2011-07-27 19:40:02 +02:00
Ross Lagerwall
d98646e430
Issue #12607 : In subprocess, fix issue where if stdin, stdout or stderr is
...
given as a low fd, it gets overwritten.
2011-07-27 07:16:31 +02:00
Senthil Kumaran
45686b472b
Correcting issue 12576 fix, which resulted in buildbot failures.
2011-07-27 09:31:03 +08:00
Ned Deily
f25e3d5278
Issue #12590 : IDLE editor window now always displays the first line
...
when opening a long file. With Tk 8.5, the first line was hidden.
2011-07-26 18:17:33 -07:00
Senthil Kumaran
1299a8f3b2
Fix closes Issue12576 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.
2011-07-27 08:05:58 +08:00
Antoine Pitrou
2a20f9be70
Backport 0398f07d4827 (fix for weird buildbot failures)
2011-07-27 01:06:07 +02:00
Ned Deily
ba2eab25ff
Issue #8746 : Use tempfile module to get tempdir and randomize the
...
link file name.
2011-07-26 13:53:55 -07:00
Éric Araujo
41bade96a4
Remove duplicates of cmp_to_key ( #12542 , reviewed by Raymond Hettinger)
2011-07-26 15:13:47 +02:00
Vinay Sajip
45dedaafc2
Fixes #12637 : Last resort messages now correctly handled. Thanks to Xavier de Gaye for the patch."
2011-07-25 19:53:28 +01:00
Antoine Pitrou
0e3c5a828e
Add a test for issue #1813 : getlocale() failing under a Turkish locale
...
(not a problem under 3.x)
2011-07-24 02:40:25 +02:00
Antoine Pitrou
cf9d3c08c8
Issue #1813 : Fix codec lookup under Turkish locales.
2011-07-24 02:27:04 +02:00
Antoine Pitrou
216a3bc36d
Issue #12624 : It is now possible to fail after the first failure when
...
running in verbose mode (`-v` or `-W`), by using the `--failfast`
(or `-G`) option to regrtest. This is useful with long test suites
such as test_io or test_subprocess.
2011-07-23 22:33:39 +02:00
Antoine Pitrou
ab85ff3d1a
Issue #12591 : Improve support of "universal newlines" in the subprocess
...
module: the piped streams can now be properly read from or written to.
(this was broken due to the 2.x to 3.x transition; communicate() support
is still sketchy)
2011-07-23 22:03:45 +02:00
Antoine Pitrou
e96ec68101
Issue #12591 : Allow io.TextIOWrapper to work with raw IO objects (without
...
a read1() method), and add an undocumented *write_through* parameter to
mandate unbuffered writes.
2011-07-23 21:46:35 +02:00
Nadeem Vawda
08f5f7aa81
Issue #10883 : Fix socket leaks in urllib.request.
...
* ftpwrapper now uses reference counting to ensure that the underlying socket
is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs
Initial patch by Victor Stinner.
2011-07-23 14:03:00 +02:00
Senthil Kumaran
de02a7194c
Fix closes issue12581 - Increase the urllib.parse test coverage. Patch by Petter Haggholm.
2011-07-23 18:27:45 +08:00
Benjamin Peterson
2193d2b72b
type check AST strings and identifiers
...
This is related to a21829180423 as well as #12609 and #12610 .
2011-07-22 10:50:23 -05:00
Ezio Melotti
1beea5b7c1
#12601 : fix typo.
2011-07-21 11:16:32 +03:00
Ned Deily
2ea6fccf64
Issue #12587 : Correct faulty test file and reference in test_tokenize.
...
(Patch by Robert Xiao)
2011-07-19 16:15:27 -07:00
Antoine Pitrou
c57ed91e0c
Issue #12571 : Add a plat-linux3 directory mirroring the plat-linux2 directory,
...
so that "import DLFCN" and other similar imports work on Linux 3.0.
2011-07-20 00:26:23 +02:00
R David Murray
4634676cec
#7484 : no more <> around addresses in VRFY or EXPN
...
The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix. Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.
The changeset also adds additional indirect tests for quoteaddr (null address
and IDNA-encoded address).
2011-07-18 21:38:54 -04:00
Eric V. Smith
12ebefc9d3
Closes #12579 . Positional fields with str.format_map() now raise a ValueError instead of SystemError.
2011-07-18 14:03:41 -04:00
Antoine Pitrou
0b447957c7
Close the call queue in concurrent.futures.ProcessPoolExecutor when
...
shutdown() is called, without waiting for the garbage collector to kick in.
2011-07-16 23:52:02 +02:00
Antoine Pitrou
f7f54759b5
Use test.script_helper in test_pydoc
2011-07-15 22:42:12 +02:00
Antoine Pitrou
a6e81a23b3
test_pydoc needs to cleanup after itself
2011-07-15 22:32:25 +02:00
Antoine Pitrou
707f228b1e
Try harder to reap dangling threads in test.support.reap_threads().
2011-07-15 22:29:44 +02:00
Antoine Pitrou
c081c0c6a0
Issue #12573 : Add resource checks for dangling Thread and Process objects.
2011-07-15 22:12:24 +02:00
Antoine Pitrou
b8298a01e6
Merge
2011-07-15 21:19:02 +02:00
Antoine Pitrou
ff35050493
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:17:14 +02:00
Antoine Pitrou
8cdc40e3b0
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:15:07 +02:00
Benjamin Peterson
58059197cc
merge heads
2011-07-15 14:11:23 -05:00
Benjamin Peterson
5afa03a72e
catch nasty exception classes with __new__ that doesn't return a exception ( closes #11627 )
...
Patch from Andreas Stührk.
2011-07-15 14:09:26 -05:00
Antoine Pitrou
9470ab43a9
Make sure to reap worker threads and processes at the end of test_concurrent_futures
2011-07-15 20:25:20 +02:00
Charles-François Natali
1f0ccfa853
Merge - Issue #12502 : asyncore: fix polling loop with AF_UNIX sockets.
2011-07-14 19:57:35 +02:00
Charles-François Natali
e22813067e
Issue #12502 : asyncore: fix polling loop with AF_UNIX sockets.
2011-07-14 19:53:38 +02:00
Benjamin Peterson
eef80b6e70
this should be an identity test
2011-07-14 10:03:35 -05:00
Victor Stinner
5702ae6f3f
Issue #12250 : test_socketserver uses a timeout of 60 seconds instead of 20
...
test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.
2011-07-14 14:53:24 +02:00
Ezio Melotti
7ebb706133
Restore the global state of the log vars, so that test_cgi can be run twice without failures.
2011-07-14 15:18:57 +03:00
Benjamin Peterson
6e18e04273
carefully cleanup pointer cache after creating struct pointers
2011-07-13 23:09:30 -05:00
Ned Deily
58e3350bd4
Issue #12549 : Correct test_platform to not fail when OS X returns 'x86_64'
...
as the processor type on some Mac systems. Also fix NameError in fallback
_mac_ver_gestalt function. And remove out-of-date URL in docs.
2011-07-13 15:07:04 -07:00
Victor Stinner
6636121950
Close #4376 : ctypes now supports nested structures in a endian different than
...
the parent structure. Patch by Vlad Riscutia.
2011-07-13 21:43:18 +02:00
Benjamin Peterson
34b2b263db
this can be done without a custom dict (also fixes #12544 )
2011-07-12 19:21:42 -05:00
Antoine Pitrou
84f1b1718d
Issue #12149 : Update the method cache after a type's dictionnary gets
...
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
2011-07-12 21:57:15 +02:00
Georg Brandl
00ebeb540f
Merge 3.2.1 release clone into main repo.
2011-07-09 10:58:37 +02:00
Georg Brandl
cd0dc16fdc
Bump version to 3.2.1.
2011-07-09 08:56:21 +02:00
Antoine Pitrou
4875c46538
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:31:24 +02:00
Antoine Pitrou
9163c473dc
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:31:24 +02:00
Antoine Pitrou
95531ea2f1
Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
...
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.
2011-07-08 19:43:51 +02:00
Antoine Pitrou
3aba49899c
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:19:57 +02:00
Antoine Pitrou
72fff046a6
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:19:57 +02:00
Antoine Pitrou
b9ac25d1c3
Issue #12440 : When testing whether some bits in SSLContext.options can be
...
reset, check the version of the OpenSSL headers Python was compiled against,
rather than the runtime version of the OpenSSL library.
2011-07-08 18:47:06 +02:00
Ned Deily
f6cbdc22be
Issue #8716 : Instead of relying on Aqua Tk exceptions to detect lack of
...
OS X window manager connection in tk tests, use OS X Application Services
API calls instead.
2011-07-05 19:09:37 -07:00
Victor Stinner
1848db891b
Issue #12493 : skip test_communicate_eintr() if signal.SIGALRM is missing
2011-07-05 14:49:46 +02:00
Victor Stinner
91e08772a6
Issue #12451 : pydoc: html_getfile() now uses tokenize.open() to support Python
...
scripts using a encoding different than UTF-8 (read the coding cookie of the
script).
2011-07-05 14:30:41 +02:00
Victor Stinner
2cfb6f3aa0
Issue #12493 : subprocess: communicate() handles EINTR
...
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:00:56 +02:00
Ned Deily
e2d519035f
Issue #12497 : Install test/data to prevent failures of the various codecmaps
...
tests.
2011-07-04 19:06:20 -07:00
Georg Brandl
bfd1edd155
Merge 3.2.1 release clone changes into main 3.2 branch after 3.2.1rc2 release.
2011-07-04 19:55:22 +02:00
Victor Stinner
e40b3aabfb
Issue #12469 : Run "wakeup" signal tests in subprocess to run the test in a
...
fresh process with only one thread and to not change signal handling of the
parent process.
2011-07-04 17:35:10 +02:00
Victor Stinner
4479841b83
Issue #12429 : Skip interrupted write tests on FreeBSD <= 7
...
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:48:17 +02:00
Victor Stinner
cd1aa0d5ea
Issue #12429 : Skip interrupted write tests on FreeBSD <= 7
...
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:48:17 +02:00
Ned Deily
4143535d86
Issue #8716 : Avoid crashes caused by Aqua Tk on OSX when attempting to run
...
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
2011-07-03 21:56:48 -07:00
Senthil Kumaran
9ebe08d2f6
Fix closes issue12471 - wrong TypeError message when '%i' format spec was used.
2011-07-03 21:03:16 -07:00
Senthil Kumaran
c8763b9d96
Fix closes issue issue12470 - check for utime for the skipUnless condition.
2011-07-03 18:21:38 -07:00
Senthil Kumaran
0c2dba5726
Fix closes issue issue12470 - check for utime for the skipUnless condition.
2011-07-03 18:21:38 -07:00
Victor Stinner
b1b25f0ffd
Issue #12467 : warnings: fix a race condition if a warning is emitted at
...
shutdown, if globals()['__file__'] is None.
2011-07-04 02:43:09 +02:00
Victor Stinner
8b0508ed4e
Issue #12467 : warnings: fix a race condition if a warning is emitted at
...
shutdown, if globals()['__file__'] is None.
2011-07-04 02:43:09 +02:00
Senthil Kumaran
80dffefcd9
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
2011-07-03 17:39:20 -07:00
Senthil Kumaran
aa90e7c573
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
2011-07-03 17:39:20 -07:00
Senthil Kumaran
7079240c4a
Fix closes issue12432 - remove the unused sys from glob.py
2011-07-03 17:21:05 -07:00
Victor Stinner
e975af62f2
Issue #12451 : pydoc: importfile() now opens the Python script in binary mode,
...
instead of text mode using the locale encoding, to avoid encoding issues.
2011-07-04 02:08:50 +02:00
Victor Stinner
6c47102982
Issue #12451 : runpy: run_path() now opens the Python script in binary mode,
...
instead of text mode using the locale encoding, to support other encodings than
UTF-8 (scripts using the coding cookie).
2011-07-04 01:45:39 +02:00
Victor Stinner
bbdc08ea6e
Issue #12451 : xml.dom.pulldom: parse() now opens files in binary mode instead
...
of the text mode (using the locale encoding) to avoid encoding issues.
2011-07-04 01:25:55 +02:00
Benjamin Peterson
ac91341333
never retain a generator's caller's exception state on the generator after a yield/return
...
This requires some trickery to properly save the exception state if the
generator creates its own exception state.
2011-07-03 16:25:11 -05:00
Benjamin Peterson
d2ed630243
merge heads
2011-07-03 13:44:56 -05:00
Benjamin Peterson
83195c3f0c
restore a generator's caller's exception state both on yield and (last) return
...
This prevents generator exception state from leaking into the caller.
Closes #12475 .
2011-07-03 13:44:00 -05:00
Georg Brandl
d4fa7ed8db
Bump to 3.2.1rc2.
2011-07-03 09:41:27 +02:00
Georg Brandl
fa76ceb3c8
Update pydoc topics.
2011-07-03 09:31:04 +02:00
Charles-François Natali
a4a04069fd
Merge issue #12352 : Fix a deadlock in multiprocessing.Heap when a block is
...
freed by the garbage collector while the Heap lock is held.
2011-07-02 14:39:53 +02:00
Charles-François Natali
778db49da9
Issue #12352 : Fix a deadlock in multiprocessing.Heap when a block is freed by
...
the garbage collector while the Heap lock is held.
2011-07-02 14:35:49 +02:00
R David Murray
ee1a7cb4a4
#11873 : another try at fixing the regex, courtesy of Victor Stinner
2011-07-01 14:55:43 -04:00
R David Murray
a3bb2f5514
#11873 : fix test regex so it covers windows os.sep as well.
2011-07-01 11:51:50 -04:00
Victor Stinner
dfde0d4650
Issue #12363 : increase the timeout of siginterrupt() tests
...
Move also the "ready" trigger after the installation of the signal handler and
the call to siginterrupt().
Use a timeout of 5 seconds instead of 3. Two seconds are supposed to be enough,
but some of our buildbots are really slow (especially the FreeBSD 6 VM).
2011-07-01 15:58:39 +02:00
Victor Stinner
8d64248c69
Issue #12363 : improve siginterrupt() tests
...
Backport commits 968b9ff9a059 and aff0a7b0cb12 from the default branch to 3.2
branch. Extract of the changelog messages:
"The previous tests used time.sleep() to synchronize two processes. If the host
was too slow, the test could fail.
The new tests only use one process, but they use a subprocess to:
- have only one thread
- have a timeout on the blocking read (select cannot be used in the test,
select always fail with EINTR, the kernel doesn't restart it)
- not touch signal handling of the parent process"
and
"Add a basic synchronization code between the child and the parent processes:
the child writes "ready" to stdout."
I replaced .communicate(timeout=3.0) by an explicit waiting loop using
Popen.poll().
2011-07-01 15:24:50 +02:00
Victor Stinner
26d318690f
Issue #11870 : Skip test_threading.test_2_join_in_forked_process() on platforms
...
with known OS bugs
Share the list of platforms with known OS bugs with other tests. Patch written
by Charles-François Natali.
2011-07-01 14:26:24 +02:00
Victor Stinner
bef7fdfc04
test_os: remove now useless TemporaryFileTests testcase
...
TemporaryFileTests has tests for os.tempnam() and os.tmpfile(), functions
removed from Python 3.
Move fdopen() tests to the FileTests testcase to test fdopen() on a file
descriptor, not on a directory descriptor (which raises an error on Windows).
2011-07-01 13:45:30 +02:00
Victor Stinner
98b3722bf7
test_os: add TemporaryFileTests to the testcase list
...
The testcase was never executed, it's now fixed.
2011-07-01 02:56:15 +02:00
Antoine Pitrou
71cbafbda1
Issue #12407 : Explicitly skip test_capi.EmbeddingTest under Windows.
2011-06-30 20:02:54 +02:00
Victor Stinner
a6d2c769fb
Issue #12451 : Open files in binary mode in some tests when the text file is not
...
needed.
Remove also an unused variable (blank) in test_threading.
2011-06-30 18:20:11 +02:00
Victor Stinner
eaf399e335
Issue #12451 : The XInclude default loader of xml.etree now decodes files from
...
UTF-8 instead of the locale encoding if the encoding is not specified. It now
also opens XML files for the parser in binary mode instead of the text mode to
avoid encoding issues.
2011-06-30 18:10:14 +02:00
Victor Stinner
12b8d14991
Issue #12451 : doctest.debug_script() doesn't create a temporary file anymore to
...
avoid encoding issues (it used the locale encoding, whereas UTF-8 should be).
Remove also an unused import (warnings).
2011-06-30 17:35:55 +02:00
Victor Stinner
e6c910e953
Issue #12451 : pydoc.synopsis() now reads the encoding cookie if available, to
...
read the Python script from the right encoding.
2011-06-30 15:55:43 +02:00
Victor Stinner
dc9b1ea02e
Issue #12451 : distutils now opens the setup script in binary mode to read the
...
encoding cookie, instead of opening it in UTF-8.
2011-06-30 15:40:22 +02:00
Victor Stinner
fcc2a21fae
Issue #12400 : regrtest.runtest() uses stream.seek(0) before .truncate()
...
.truncate(0) doesn't rewind.
2011-06-29 20:01:29 +02:00
Victor Stinner
592f679dce
Issue #12400 : test_zipimport_support doesn't restore original sys.stdout
...
anymore
regrtest doesn't check that a test doesn't output anything anymore.
2011-06-29 18:11:36 +02:00
Victor Stinner
85b3a492d6
Issue #12400 : runtest() truncates the StringIO stream before a new test
2011-06-29 17:26:38 +02:00
Victor Stinner
125b2ba41e
Issue #12400 : Add missing import (os) to test_kqueue
2011-06-29 17:20:02 +02:00
Victor Stinner
bddc4d4607
Issue #12400 : test.support.run_doctest() doesn't change sys.stdout anymore
...
regrtest doesn't check that tests doesn't write something to stdout anymore.
Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.
2011-06-29 15:52:46 +02:00
Victor Stinner
ea95de75dd
Issue #12400 : regrtest, force verbose mode to True with option -W
...
If verbose is False, the output is empty. Fix also a typo in a variable name.
2011-06-29 15:34:48 +02:00
Victor Stinner
8313d6aef8
Issue #12400 : runtest() reuses the same io.StringIO instance for all calls
...
* Don't force verbose to True with option -W
* Rename rerun_failed variable to output_on_failure
2011-06-29 15:22:26 +02:00
Victor Stinner
46b2091146
Issue #12400 : don't use sys.stderr in test_kqueue because it may be replaced by
...
a io.StringIO object by regrtest (which has no file descriptor).
2011-06-29 14:59:10 +02:00
Victor Stinner
bd98f9367c
Issue #12400 : remove unused variable
2011-06-29 13:24:28 +02:00
Victor Stinner
a7c33e5168
Issue #12400 : regrtest -W doesn't rerun the tests twice anymore, but captures
...
the output and displays it on failure instead. regrtest -v doesn't print the
error twice anymore if there is only one error.
2011-06-29 13:00:54 +02:00
Ned Deily
a8f8b50bd7
Issue #9516 : Change distutils to no longer globally attempt to check and
...
set the MACOSX_DEPLOYMENT_TARGET env variable for the interpreter process
on OS X. This could cause failures in non-distutils subprocesses and was
unreliable since tests or user programs could modify the interpreter
environment after distutils set it. Instead, have distutils set the
the deployment target only in the environment of each build subprocess.
Continue to use the previous algorithm for deriving the deployment target
value:
if MACOSX_DEPLOYMENT_TARGET is not set in the interpreter's env:
use the interpreter build configure MACOSX_DEPLOYMENT_TARGET
elif the MACOSX_DEPLOYMENT_TARGET env value >= configure value:
use the env MACOSX_DEPLOYMENT_TARGET
else: # env value less than interpreter build configure value
raise exception
This allows building extensions that can only run on newer versions of
the OS than the version python was built for, for example with a python
built for 10.3 or later and an extension that needs to be built for 10.5.
2011-06-28 19:44:24 -07:00
Ned Deily
d13007fa11
Issue #9516 : Correct and expand OS X deployment target tests in distutils
...
test_build_ext.
2011-06-28 19:43:15 -07:00
Ned Deily
58f27b203c
Issue #12141 : Install a copy of template C module file so that
...
test_build_ext of test_distutils is no longer silently skipped when
run outside of a build directory.
2011-06-28 00:42:50 -07:00
Ned Deily
3eb67d58d6
Issue #8746 : Correct faulty configure checks so that os.chflags() and
...
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X). Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED). Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-28 00:00:28 -07:00
Ned Deily
11f00f3b00
Issue #10736 : Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
...
on Mac OS X. (Patch by Ronald Oussoren)
2011-06-27 23:12:20 -07:00
Benjamin Peterson
68b543aa02
fix ws
2011-06-27 17:51:18 -05:00
Benjamin Peterson
6ccfe85847
add more ast tests ( closes #11302 )
...
A patch from Vincent Legoll.
2011-06-27 17:46:06 -05:00
Benjamin Peterson
0f93d3d6f3
strip trailing ws
2011-06-27 09:18:46 -05:00
Benjamin Peterson
afa44a8096
update profile license ( closes #12417 )
2011-06-27 09:14:34 -05:00
Benjamin Peterson
8d77069558
update profile license ( closes #12417 )
2011-06-27 09:14:34 -05:00
Raymond Hettinger
038018aaa4
Issue #4608 : urllib.request.urlopen does not return an iterable object
2011-06-26 14:29:35 +02:00
Raymond Hettinger
70797194ab
Issue 11802: filecmp cache was growing without bound.
2011-06-25 17:20:21 +02:00
Mark Dickinson
eceebeb14f
Issue #12408 : Fix relative import in test_future5.py. Thanks Cesare Di Mauro.
2011-06-25 13:29:14 +02:00
Raymond Hettinger
5279fb99cb
Code simplification suggested by Sven Marnach.
2011-06-25 11:30:53 +02:00
R David Murray
e697e3750f
#10206 : add test for previously fixed bug.
...
Patch by Francisco Martín Brugué.
2011-06-24 13:26:31 -04:00
Victor Stinner
66f7d66174
Issue #11223 : skip also test_rlock_acquire_interruption() on FreeBSD6
2011-06-23 14:22:28 +02:00
Victor Stinner
f25ae48dfd
Issue #11223 : skip test_lock_acquire_interruption() on FreeBSD6
...
Locks are implemented using a mutex and a condition variable of the pthread
library on FreeBSD6. POSIX condition variables cannot be interrupted by signals
(see pthread_cond_wait manual page).
2011-06-23 11:57:56 +02:00
Victor Stinner
62d511809d
Issue #12383 : skip test_empty_env() of subprocess on Windows
...
Cannot test an empty environment on Windows: Windows requires at least the
SYSTEMROOT environment variable to start Python.
2011-06-23 01:02:25 +02:00
Victor Stinner
237e5cb376
Issue #12383 : fix test_empty_env() of subprocess on Mac OS X
...
Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix
also the test on the Py_ENABLE_SHARED config varible: test that the variable is
present, don't check it's value.
2011-06-22 21:28:43 +02:00
Victor Stinner
372309a551
Issue #12383 : skip test_empty_env() if compiled is compiled in shared mode
...
Try also to get more informations about the Mac OS X failure: display the keys
of the environment, instead of just the number of variables.
2011-06-21 21:59:06 +02:00
Victor Stinner
f1512a2967
Close #12383 : Fix subprocess module with env={}: don't copy the environment
...
variables, start with an empty environment.
2011-06-21 17:18:38 +02:00