Petri Lehtinen
587209f089
Fix sqlite3.Connection.iterdump on tables/fields with reserved names or quotes
...
Closes #9750
2012-02-12 21:03:02 +02:00
Éric Araujo
6faad8de7f
Fix distutils.filelist.FileList under Windows ( #13193 ).
...
The code used to call os.path.join to build a regex but without escaping
the backslash, which lead to test failures on Windows. Antoine Pitrou
fixed it in 557a973709de by enhancing the code to accept both / and \,
with proper escaping, but in my opinion this goes against the distutils
feature freeze, hence this change.
2012-02-12 04:41:36 +01:00
Ned Deily
c47a459251
Issue #13994 : Earler partial revert of Distutils enhancements in 2.7
...
has left two versions of customize_compiler, the original in
distutils.sysconfig and another copy in distutils.ccompiler, with some
parts of distutils calling one and others using the other.
Complete the revert back to only having one in distutils.sysconfig as
is the case in 3.x.
2012-02-11 20:40:24 +01:00
Ned Deily
0d0ea48709
Issue #13590 : On OS X 10.7 and 10.6 with Xcode 4.2, building
...
Distutils-based packages with C extension modules may fail because
Apple has removed gcc-4.2, the version used to build python.org
64-bit/32-bit Pythons. If the user does not explicitly override
the default C compiler by setting the CC environment variable,
Distutils will now attempt to compile extension modules with clang
if gcc-4.2 is required but not found. Also as a convenience, if
the user does explicitly set CC, substitute its value as the default
compiler in the Distutils LDSHARED configuration variable for OS X.
(Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u
SDK, neither of which are available in Xcode 4. This change does not
attempt to override settings to support their use with Xcode 4.)
2012-02-10 12:59:06 +01:00
Charles-François Natali
ebf691d64c
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
...
can't be called reliably from a worker thread.
2012-02-08 21:27:56 +01:00
Petri Lehtinen
c7fd523ac5
Issue #10811 : Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
2012-02-06 22:04:00 +02:00
Ned Deily
2c8bf04308
Issue #10881 : Fix test_site failures with OS X framework builds.
2012-02-06 00:55:50 +01:00
Terry Jan Reedy
adb87e2677
Issue 964437 Make IDLE help window non-modal.
...
Patch by Guilherme Polo and Roger Serwy.
2012-02-05 15:10:55 -05:00
Terry Jan Reedy
d76c1bf599
#13933 refine patch using 'new' builtin
2012-02-05 14:30:43 -05:00
Meador Inge
25e70fd133
Issue #12142 : Fixed reference cycle when importing ctypes
2012-02-05 00:27:40 -06:00
Ned Deily
61c9534363
Issue #13933 : IDLE auto-complete did not work with some imported
...
module, like hashlib. (Patch by Roger Serwy)
2012-02-04 18:35:23 +01:00
Antoine Pitrou
60be6f8e37
Fix failing test on big-endian machines (issue #13806 ).
2012-02-04 16:44:21 +01:00
Charles-François Natali
709aa35a7a
Issue #8184 : Fix a potential file descriptor leak when a
...
multiprocessing.Connection socket can't be bound.
2012-02-04 14:40:25 +01:00
Benjamin Peterson
0013783d2f
remove unused import
2012-02-03 19:07:30 -05:00
Ned Deily
22d2711cb6
Issue #13861 : Prevent test_apropos* test case failures in test_pydoc.
2012-02-03 23:13:03 +01:00
Ned Deily
fbc56fde26
Issue #13901 : Prevent test_distutils failures on OS X with --enable-shared.
2012-02-03 02:39:49 +01:00
Charles-François Natali
6dce7d633f
Merge.
2012-02-02 20:36:47 +01:00
Petri Lehtinen
fe6f9d0edc
Document absoluteness of sys.executable
...
Closes #13402 .
2012-02-02 21:26:05 +02:00
Charles-François Natali
e0e88b0483
Issue #13817 : After fork(), reinit the ad-hoc TLS implementation earlier to fix
...
a random deadlock when fork() is called in a multithreaded process in debug
mode, and make PyOS_AfterFork() more robust.
2012-02-02 19:57:19 +01:00
Stefan Krah
da6db4f8b0
Issue #1813 : backport changeset that reverts a glibc workaround for the
...
Fedora buildbot.
2012-02-02 16:57:49 +01:00
Brian Curtin
3c8807bd5e
merge.
2012-02-01 15:22:50 -06:00
Brian Curtin
b4bef305fd
merge from fb225c289bf0
2012-02-01 15:17:39 -06:00
Petri Lehtinen
0518f470b1
sqlite3: Handle strings with embedded zeros correctly
...
Closes #13676 .
2012-02-01 22:20:13 +02:00
Terry Jan Reedy
1d4ae48f48
whitespace3
2012-01-31 02:55:32 -05:00
Terry Jan Reedy
b98000ab5b
#13506 Add '' to path for interactive interpreter by adding with_cwd parameter
...
to PyShell.PyShell.transfer_path() and changing elsewhere as needed.
Original patches by Marco Scataglini and Roger Serwy.
2012-01-31 02:09:25 -05:00
Benjamin Peterson
caa0f61463
remove tests from really old regex module
2012-01-28 20:33:21 -05:00
Antoine Pitrou
88c51e8cb1
Issue #13806 : The size check in audioop decompression functions was too strict and could reject valid compressed data.
...
Patch by Oleg Plakhotnyuk.
2012-01-28 22:01:59 +01:00
Antoine Pitrou
7a556846d4
Fix intermittent test_ssl failure.
2012-01-27 17:33:01 +01:00
Antoine Pitrou
6f25d75f25
Remove debug output, fix assert (hopefully) and exercise signedness issues a bit more.
2012-01-25 15:38:32 +01:00
Antoine Pitrou
6e16f53855
Skip test failure under OpenIndiana
2012-01-25 02:49:47 +01:00
Antoine Pitrou
e3668e9842
Make test work under 32-bit systems, and when invoked through Lib/test/regrtest.py
...
(rather than `-m test.regrtest`)
2012-01-25 01:35:26 +01:00
Antoine Pitrou
d1c818a9c0
Issue #11235 : Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.
2012-01-24 17:44:06 +01:00
Łukasz Langa
30b13eebfe
Fixes #4686 . Reverts redundant picklability code from r74544.
2012-01-23 17:30:53 +01:00
Senthil Kumaran
58c6062068
Fix Issue6631 - Disallow relative files paths in urllib*.open()
2012-01-21 11:43:02 +08:00
Łukasz Langa
631c258000
Fixes #13760 : picklability of ConfigParser exceptions
2012-01-20 17:02:08 +01:00
Vinay Sajip
6d102f18cb
Closes #13807 : Now checks for sys.stderr being there before writing to it.
2012-01-20 11:20:12 +00:00
Nadeem Vawda
d7664dee0c
Issue #13781 : Fix GzipFile to work with os.fdopen()'d file objects.
2012-01-19 00:40:46 +02:00
Antoine Pitrou
e09bc1e8f5
Revert part of 13f56cd8dec1 (issue #1785 ) to avoid breaking getmembers() with unbound methods.
...
Python 3 isn't affected (unbound methods don't exist).
Thanks to Vincent Pelletier for noticing.
2012-01-18 17:39:01 +01:00
Jesus Cea
a8f75da8f2
Yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name
2012-01-18 04:43:50 +01:00
Jesus Cea
f830aa5455
Emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name
2012-01-18 04:25:28 +01:00
Jesus Cea
4a8ba19783
Closes #13803 : Under Solaris, distutils doesn't include bitness in the directory name
2012-01-18 03:51:38 +01:00
Antoine Pitrou
3b6a31412f
Issue #13589 : Fix some serialization primitives in the aifc module.
...
Patch by Oleg Plakhotnyuk.
2012-01-17 17:13:04 +01:00
Benjamin Peterson
465b58e5ee
explain why we need this grammar file ( closes #13766 )
2012-01-15 21:28:00 -05:00
Terry Jan Reedy
8ef4a70a48
#13039 allow proper deletion of '>>> ' in IDLE editor windows.
...
Patch by Roger Serwy.
2012-01-15 19:02:50 -05:00
Jason R. Coombs
4a24283272
Adding regression test for issue6727
2012-01-15 11:45:27 -05:00
Benjamin Peterson
a8d458560e
allow cycles throught the __dict__ slot to be cleared ( closes #1469629 )
...
Patch from Armin, test from me.
2012-03-07 18:41:11 -06:00
Éric Araujo
ec17afdfda
Backout buggy patch for #13719
2012-03-07 21:00:44 +01:00
Vinay Sajip
da563bfa48
Closes #14158 : We now track test_support.TESTFN cleanup, and test_mailbox uses shutil.rmtree for simpler code.
2012-03-06 20:07:15 +00:00
Éric Araujo
1bf6bb6c37
Fix NameError
2012-03-05 17:00:49 +01:00
Éric Araujo
dcd280480f
Make distutils’ upload command work with bdist_msi products ( #13719 ).
...
Patch by Ralf Schmitt.
2012-03-05 16:47:33 +01:00
Éric Araujo
7c16412425
Use raw string for a docstring that uses a backslash
2012-03-05 16:29:30 +01:00
Meador Inge
104f18977f
Issue #14195 : Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.
2012-03-04 22:02:17 -06:00
Antoine Pitrou
94c2d6df54
Fix some set algebra methods of WeakSet objects.
2012-03-04 20:47:05 +01:00
Antoine Pitrou
859416e980
Fix sporadic failure in test_weakset
2012-03-04 20:20:34 +01:00
Armin Rigo
1cb2e04238
Add a crasher for the documented issue of calling "Py_DECREF(self->xxx)";
2012-03-04 18:56:23 +01:00
Antoine Pitrou
c56bca31e9
Issue #14159 : Fix the len() of weak sets to return a better approximation when some objects are dead or dying.
...
Moreover, the implementation is now O(1) rather than O(n).
Thanks to Yury Selivanov for reporting.
2012-03-01 16:26:35 +01:00
Ezio Melotti
ca666245e7
#14089 : increase coverage of the fractions module. Patch by Oleg Plakhotnyuk.
2012-02-29 14:04:02 +02:00
Ezio Melotti
38ae5b2392
#10713 : Improve documentation for \b and \B and add a few tests. Initial patch and tests by Martin Pool.
2012-02-29 11:40:00 +02:00
Nadeem Vawda
a6bdfd1fa9
Give better failure messages in test_strptime (cf. issue #14113 ).
2012-02-29 00:21:40 +02:00
Antoine Pitrou
6a1cd1b3b1
Issue #13521 : dict.setdefault() now does only one lookup for the given key, making it "atomic" for many purposes.
...
Patch by Filip Gruszczyński.
2012-02-27 00:45:12 +01:00
Éric Araujo
ae50babe32
Synchronize some distutils tests with 3.2.
...
- 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 looks like a disabled test
method instead of an helper method
- Fix some idioms (assertIn, addCleanup)
2012-02-26 01:53:53 +01:00
Éric Araujo
7f4b3be2cc
Fix typo “seperator”
2012-02-26 01:41:39 +01:00
Éric Araujo
9ede557d34
Update docstring with more useful text (from the PEP)
2012-02-26 01:37:47 +01:00
Éric Araujo
06efea3392
Use raw strings for docstrings with backslashes in ASCII diagrams
2012-02-26 01:33:22 +01:00
Éric Araujo
8d4d74eefc
Update lingering references to ex-parrot. I mean ex-devguide.
2012-02-26 01:28:34 +01:00
Éric Araujo
ef2e14e675
Fix instructions on how to rebuild some modules
2012-02-26 01:26:09 +01:00
Éric Araujo
d673b62bac
Stop ignoring RPMs in distutils' upload command ( #2945 ).
...
Bug reported by Hartmut Goebel and patch contributed by Carl Robben.
Untested backport of the fix committed and tested for 3.2.
2012-02-26 01:16:47 +01:00
Éric Araujo
e84e263a84
Add test file for scripts in Tools ( #13447 ).
...
When people find bugs in scripts such as reindent.py, msgfmt.py or
pygettext.py, we have to try to reproduce the bug manually, apply a fix
and test manually again. The alternative is to only read the code and
trust that it works. This test file is a way to stop that
unsatisfactory state of things and write proper unit tests instead.
2012-02-25 16:24:59 +01:00
Éric Araujo
31378df83a
Fix long-standing bugs with MANIFEST.in parsing on Windows ( #6884 ).
...
These regex changes fix a number of issues for distutils on Windows:
- #6884 : impossible to include a file starting with 'build'
- #9691 and #14004 : sdist includes too many files
- #13193 : test_filelist failures
This commit replaces the incorrect changes done in 557a973709de,
c566a3447ba1 and 3925081a7ca0 to fix #13193 ; we were too eager to fix
the test failures and I did not study the code enough before
greenlighting patches. This time we have unit tests from the problems
reported by users to be sure we have the right fix.
Thanks to Nadeem Vawda for his help.
2012-02-25 16:13:53 +01:00
Vinay Sajip
93fa159a43
Merged upstream changes.
2012-02-23 20:55:58 +00:00
Vinay Sajip
501982226a
Fix added for recent changes in non-threading environments.
2012-02-23 20:45:03 +00:00
Benjamin Peterson
03d2368748
merge heads
2012-02-23 15:20:08 -05:00
Vinay Sajip
16f6a29be8
Updated comments.
2012-02-23 19:40:33 +00:00
Vinay Sajip
d23845e270
logging: Added locking in flush() and close() handler methods. Thanks to Fayaz Yusuf Khan for the suggestion.
2012-02-23 19:37:18 +00:00
Amaury Forgeot d'Arc
dee76e627d
Issue #13774 : json: Fix a SystemError when a bogus encoding is passed to
...
json.loads().
2012-01-13 22:53:25 +01:00
Antoine Pitrou
9e0839006e
Remove unused certificate from the test directory.
2012-01-10 23:45:54 +01:00
Senthil Kumaran
bcd833f30f
- Issue #13642 : Unquote before b64encoding user:password during Basic
...
Authentication. Patch contributed by Joonas Kuorilehto and Michele Orrù.
2012-01-11 00:09:24 +08:00
Terry Jan Reedy
cfe6deb6f7
#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
Benjamin Peterson
5fc58c6321
fix this to not depend on dictionary order
2012-01-03 16:23:11 -06:00
Antoine Pitrou
d76088d972
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
3aa59e327c
Issue #9975 : socket: Fix incorrect use of flowinfo and scope_id. Patch by
...
Vilmos Nebehaj.
2012-01-02 15:38:27 +01:00
Jason R. Coombs
79e50c659a
Limit test scope to those platforms that can save the target filenames. Reference #11638 .
2011-12-28 11:42:22 -05:00
Benjamin Peterson
c32d5cb9ec
propgate error in other conditions
2011-12-27 15:16:34 -06:00
Jason R. Coombs
042370e750
Issue #11638 : Adding test to ensure .tar.gz files can be generated by sdist command with unicode metadata, based on David Barnett's patch.
...
Issue #11638 : Added tests to capture failures in make_tarball with various unicode strings.
Following fix for Issue #13639 , these tests now pass.
2011-12-26 10:15:15 -05:00
Charles-François Natali
b40827d379
Issue #13565 : Increase multiprocessing's server socket backlog, to avoid
...
dropped connections in case of simultaneous connection requests.
2011-12-23 19:05:45 +01:00
Senthil Kumaran
139c457106
port to 2.7 - Minor code style improvements in http.server suggested in Issue13294.
2011-12-23 17:07:13 +08:00
Lars Gustäbel
7d4d074c99
Issue #13639 : Accept unicode filenames in tarfile.open(mode="w|gz").
...
Passing a unicode filename to tarfile.open() along with mode "w|gz" failed
with a UnicodeError because the filename was not encoded properly before being
written to the gzipped stream in the FNAME extra field.
2011-12-21 19:27:50 +01:00
Antoine Pitrou
5b95eb90a7
Use context managers in test_ssl to simplify test writing.
2011-12-21 16:52:40 +01:00
Antoine Pitrou
17c07134a9
Fix test_import failure when run multiple times.
...
(2.7-only)
2011-12-21 16:01:53 +01:00
Antoine Pitrou
b8572a1673
Issue #1785 : Fix inspect and pydoc with misbehaving descriptors.
...
Also fixes issue #13581 : `help(type)` wouldn't display anything.
2011-12-21 10:16:14 +01:00
Charles-François Natali
8366b8417b
Followup to issue #11867 : Use socketpair(), since FreeBSD < 8 doesn't really
...
support multiprocessing.Event.
2011-12-20 11:47:23 +01:00
Charles-François Natali
3b8180739d
Issue #13453 : Try to increase some socket timeouts to make some buildbots stop
...
failing.
2011-12-19 16:11:04 +01:00
Victor Stinner
99cff3f182
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 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:59:58 +01:00
Charles-François Natali
52aa260387
Issue #11867 : Make test_mailbox.test_lock_conflict deterministic (and fix a
...
race condition).
2011-12-19 12:17:16 +01:00
Ezio Melotti
6b7003a18c
#13576 : add tests about the handling of (possibly broken) condcoms.
2011-12-19 07:28:08 +02:00
Antoine Pitrou
6c3f4a8a24
Followup to #7502 : add __hash__ method and tests.
2011-12-18 20:20:17 +01:00
Antoine Pitrou
7a3d8aee8c
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
41616300b1
Issue #11870 : threading: Properly reinitialize threads internal locks and
...
condition variables to avoid deadlocks in child processes.
2011-12-18 18:22:24 +01:00
Charles-François Natali
f3d35f0efe
Issue #8035 : urllib: Fix a bug where the client could remain stuck after a
...
redirection or an error.
2011-12-18 15:52:48 +01:00
Victor Stinner
429a12b7b6
Issue #13545 : Fix platform.libc_version() is the SO version is missing
2011-12-15 21:42:03 +01:00
Ned Deily
40ad04171d
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:57:43 -08:00
Charles-François Natali
27b154ea57
Issue #13453 : Fix a race condition in test_poplib.
2011-12-14 19:28:08 +01:00
Raymond Hettinger
f537702732
Issue #13573 : The csv.writer now uses the repr() for floats rather than str().
2011-12-11 22:31:09 -08:00
Benjamin Peterson
8b59c23a54
you can't get resource.error if you can't import resource
2011-12-10 12:31:42 -05:00
Charles-François Natali
97c9428c91
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
2011-12-10 13:16:02 +01:00
Jason R. Coombs
77cd258550
Implemented suggested improvements for pdb test by Éric Araujo
2011-12-08 22:14:56 -05:00
Victor Stinner
0de2aaea7f
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
4988ca5c55
#13531 : add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
2011-12-08 00:00:49 +02:00
Amaury Forgeot d'Arc
4bf21e28df
Issue #13546 : Fixed an overflow issue that could crash the intepreter when
...
calling sys.setrecursionlimit((1<<31)-1).
2.7 only.
2011-12-07 21:46:48 +01:00
Jesus Cea
a94b578431
Close #13500 : Hitting EOF gets cmd.py into a infinite EOF on return loop
2011-12-06 20:46:04 +01:00
Lars Gustäbel
9a38863d8c
Correctly detect bzip2 compressed streams with blocksizes other than 900k.
2011-12-06 13:07:09 +01:00
Jason R. Coombs
974d863fec
Issue #13211 : Add .reason attribute to HTTPError to implement parent class (URLError) interface.
2011-11-07 10:44:25 -05:00
Petri Lehtinen
49e49a218c
Issue #13439 : Fix many errors in turtle docstrings.
2011-12-02 21:22:53 +02:00
Ezio Melotti
ab731a3556
#8414 : add more tests for "assert". Initial patch by Gregory Nofi.
2011-12-02 18:17:30 +02:00
Charles-François Natali
27bc4d07cc
Issue #13415 : Skip test_os.test_unset_error on FreeBSD and OS X.
2011-11-27 13:05:14 +01:00
Meador Inge
710671a722
Issue #12618 : fix py_compile unit tests to handle different drives on Windows
2011-11-26 11:30:21 -06:00
Meador Inge
89749407af
Issue #12618 : create unit tests for the py_compile module
2011-11-25 23:28:18 -06:00
Meador Inge
0e30317891
Issue #13380 : add an internal function for resetting the ctypes caches
2011-11-25 22:25:06 -06:00
Antoine Pitrou
a5d5bb997b
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
091b6ef793
Issue #13436 : Fix unsetenv() test on Windows
2011-11-22 22:30:19 +01:00
Victor Stinner
53853c3fa9
Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:20:13 +01:00
Charles-François Natali
6392d7f68b
Issue #12156 : Skip test_multiprocessing on systems which don't support enough
...
POSIX semaphores (among which FreeBSD < 8).
2011-11-22 18:35:18 +01:00
Victor Stinner
975134e2a2
Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
...
Add tests for PyUnicode_EncodeDecimal()
2011-11-22 01:54:19 +01:00
Antoine Pitrou
5aa7df320f
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
9d38b0dcb2
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
169ed5946a
#11112 : Fix typo in a base class in test_socket.
2011-11-18 18:33:14 +02:00
Ezio Melotti
00dc60beee
#13358 : HTMLParser now calls handle_data only once for each CDATA.
2011-11-18 18:00:40 +02:00
Ezio Melotti
93bbb6a9a6
#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:30:28 +02:00
Jason R. Coombs
5d032c0f95
PDB now will properly escape backslashes in the names of modules it executes. Fixes #7750
2011-11-17 18:03:24 -05:00
Ned Deily
174c4f897f
Issue #8793 : Prevent IDLE crash in 2.7 when given strings with
...
invalid hex escape sequences.
2011-11-15 18:29:02 -08:00
Antoine Pitrou
30402549de
Issue #13333 : The UTF-7 decoder now accepts lone surrogates
...
(the encoder already accepts them).
2011-11-15 01:49:40 +01:00
Victor Stinner
16ed86831b
Issue #7732 : Try to fix the a failing test on Windows
...
It doesn't matter if imp.find_module() fails with ImportError or IOError, but
it should not crash.
2011-11-14 20:50:36 +01:00
Ezio Melotti
0f1571ce7f
#1745761 , #755670 , #13357 , #12629 , #1200313 : improve attribute handling in HTMLParser.
2011-11-14 18:04:05 +02:00
Ezio Melotti
74592919d6
Group tests about attributes in a separate class.
2011-11-08 02:07:18 +02:00
Petri Lehtinen
ab42abd160
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:02:42 +02:00
Antoine Pitrou
667383c8d4
Issue #13193 : Fix distutils.filelist.FileList under Windows. The
...
"recursive-include" directive now recognizes both legal path separators.
2011-11-12 01:33:59 +01:00
Antoine Pitrou
6a570d6b9a
Issue #13373 : multiprocessing.Queue.get() could sometimes block indefinitely
...
when called with a timeout. Patch by Arnaud Ysmal.
2011-11-10 00:33:50 +01:00
Jesus Cea
cb65f3249a
Partial patch for issue #11812 : Take care of test_telnetlib.py
2011-11-08 16:06:44 +01:00
Jesus Cea
71094b5d5b
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
2011-11-08 15:54:42 +01:00
Vinay Sajip
53703d9d72
Closes #13361 : Raise correct exception type.
2011-11-07 10:13:18 +00:00
Vinay Sajip
74ab3440ba
Closes #13661 : Check added for type of logger name.
2011-11-07 08:49:16 +00:00
Vinay Sajip
caf0272d40
Closes #13356 . Thanks to Florent Xicluna for the patch.
2011-11-07 08:43:51 +00:00
Petri Lehtinen
3b9d92aefe
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
...
Issue #13340 .
2011-11-06 20:59:01 +02:00
Ezio Melotti
030aa35a1b
Silence a couple of warnings.
2011-11-06 18:50:32 +02:00
Ezio Melotti
b22c3fe5d8
Fix another callable warning.
2011-11-06 17:50:52 +02:00
Ezio Melotti
152d61aa5b
Fix tests now that the callable warning is gone.
2011-11-06 17:17:52 +02:00
Petri Lehtinen
819d8d447d
Accept None as start and stop parameters for list.index() and tuple.index()
...
Closes #13340 .
2011-11-05 23:18:06 +02:00
Petri Lehtinen
416ecffcc4
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:18:50 +02:00
Petri Lehtinen
49aa72ed4c
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:50:37 +02:00
Éric Araujo
ce7554f0a1
Revert commit that was not a bugfix ( #5301 ).
...
I won’t revert in 3.2, since Georg pulled this change in 3.2.2 and
released it.
2011-11-04 18:15:45 +01:00
Florent Xicluna
5f761d79c0
Issue #13140 : Fix the daemon_threads attribute of ThreadingMixIn.
2011-11-04 10:15:57 +01:00
Charles-François Natali
09f871462f
Issue #13308 : Fix test_httpservers failures when run as root.
2011-11-02 19:32:54 +01:00
Florent Xicluna
b82cbc33f5
Fix merge in changeset e1dde980a92c.
2011-11-01 23:54:16 +01:00
Florent Xicluna
0965ee213e
Issue #2892 : preserve iterparse events in case of SyntaxError
2011-11-01 23:34:41 +01:00
Ezio Melotti
7e82b276dd
#670664 : Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``.
2011-11-01 14:09:56 +02:00
Ned Deily
1aacd7bb02
Issue #13304 : Skip test case if user site-packages disabled (-s or
...
PYTHONNOUSERSITE). (Patch by Carl Meyer)
2011-10-31 16:14:52 -07:00
Antoine Pitrou
cf9943de97
Backout redundant changeset 1de4d92cd6a4
2011-10-31 20:23:00 +01:00
Senthil Kumaran
87e585581d
Port to 2.7 - issue 10817 - Fix urlretrieve function to raise
...
ContentTooShortError even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 02:44:45 +08:00
Barry Warsaw
39aec0171d
test_protocol_sslv2(): Skip this test if ssl.PROTOCOL_SSLv2 is not
...
defined (as is the case with Ubuntu 11.10).
2011-10-31 14:08:15 -04:00
Jesus Cea
e4ae5f7e0f
Closes #13283 : removal of two unused variable in locale.py
2011-10-31 16:02:12 +01:00
Ned Deily
86d669bdb8
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
...
(Patch by Roger Serwy)
2011-10-30 19:58:04 -07:00
Raymond Hettinger
e11a47e207
Issue 13274: Make the pure python code for heapq more closely match the C implementation for an undefined corner case.
2011-10-30 14:29:06 -07:00
Antoine Pitrou
6361ea2b07
Remove unstable SSL tests in the absence of ssl.OP_NO_{SSLv2,SSLv3,TLSv1}
2011-10-30 21:31:34 +01:00
Ezio Melotti
ef4e2fa171
#13289 : fix typo.
2011-10-29 10:40:20 +03:00
Florent Xicluna
67d5d0ed44
Closes #7334 : close source files on ElementTree.parse and iterparse (partial backport of issue #10093 from 3.2).
2011-10-29 03:38:56 +02:00
Benjamin Peterson
e96102b45b
bring is_integer into tested existence
2011-10-28 19:42:48 -04:00
Barry Warsaw
be83698f21
- Issue #13218 : Fix test_ssl failures on Debian/Ubuntu.
2011-10-28 16:14:44 -04:00
Benjamin Peterson
7789f270d8
adjust for change in assert bytecode
2011-10-27 08:53:32 -04:00
Benjamin Peterson
78fc70503e
add a test for an assertion with tuple msg
2011-10-27 08:20:01 -04:00
Petri Lehtinen
6d089df1b8
Issue #10860 : Skip the new test if HTTPS is not available
2011-10-26 21:25:56 +03:00
Vinay Sajip
5087d800c1
Corrected typo in comment.
2011-10-25 11:10:54 +01:00
Vinay Sajip
9a11b296b2
Closes #13232 : Handle multiple encodings in exception logging.
2011-10-24 23:23:02 +01:00
Charles-François Natali
46f990e58c
Issue #10332 : multiprocessing: fix a race condition when a Pool is closed
...
before all tasks have completed.
2011-10-24 18:43:51 +02:00
Antoine Pitrou
5a77fe92bd
Issue #1548891 : The cStringIO.StringIO() constructor now encodes unicode
...
arguments with the system default encoding just like the write() method
does, instead of converting it to a raw buffer.
2011-10-22 21:26:01 +02:00
Antoine Pitrou
f678e82240
Oops, forgot issue number
2011-10-21 22:22:43 +02:00
Antoine Pitrou
a5016cd0f7
Add test for fix of issue #1730114 .
2011-10-21 22:22:04 +02:00
Florent Xicluna
47fb192dda
Issue #9168 : now smtpd is able to bind privileged port.
2011-10-20 23:21:58 +02:00
Senthil Kumaran
ddd40312d5
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:38:35 +08:00
Senthil Kumaran
59a06d412d
Fix closes Issue12529 - cgi.parse_header failure on double quotes and
...
semicolons. Patch by Ben Darnell and Petri Lehtinen.
2011-10-20 00:52:24 +08:00
Ezio Melotti
1e87da16ea
Remove duplication.
2011-10-19 10:39:35 +03:00
Łukasz Langa
7a15390f83
Fixes #10860 : Handle empty port after port delimiter in httplib
...
Thanks, Shawn Ligocki!
3.x version will come as a separate patch.
2011-10-18 17:16:00 +02:00
Mark Hammond
3dca9f52a4
normalize whitespace in Lib/distutils/msvc9compiler.py
2011-10-17 11:35:06 +11:00
Mark Hammond
323b5daa10
Issue #7833 : Ext. modules built using distutils on Windows no longer get a manifest
2011-10-17 11:05:36 +11:00
Benjamin Peterson
a7b0976c3e
PyEval_CallObject requires a tuple of args ( closes #13186 )
2011-10-15 13:43:21 -04:00
Éric Araujo
5baef6d23b
Increase test coverage for distutils.filelist ( #11751 ).
...
Patch by Justin Love.
2011-10-14 18:15:31 +02:00
Éric Araujo
017e535bde
Fix distutils’ check and register Unicode handling ( #13114 ).
...
The check command was fixed by Kirill Kuzminykh.
The register command was using StringIO.getvalue, which uses “''.join”
and thus coerces to str using the default encoding (ASCII), so I changed
the code to use one extra intermediary list and correctly encode to
UTF-8.
2011-10-09 07:11:19 +02:00
Éric Araujo
ece7079b54
Branch merge
2011-10-09 06:33:54 +02:00
Éric Araujo
1a1a8a0e31
Fix test_sysconfig when prefix != exec-prefix ( #9100 ).
...
Reported by Zsolt Cserna.
2011-10-08 02:49:12 +02:00
Éric Araujo
5fb16cd1d2
Make C code in one distutils test comply with ISO C ( #10359 ).
...
Patch by Hallvard B Furuseth.
2011-10-08 02:15:55 +02:00
Ned Deily
c4a2745174
Issue #7367 : Ensure test directory always gets removed.
2011-10-07 12:01:18 -07:00
Ned Deily
777f2e04ea
Issue #7367 : Fix pkgutil.walk_paths to skip directories whose
...
contents cannot be read.
2011-10-06 14:17:47 -07:00
Ned Deily
0096fb5780
Issue #7425 : Prevent pydoc -k failures due to module import errors.
...
(Backport to 2.7 of existing 3.x fix)
2011-10-06 14:17:44 -07:00
Ned Deily
ac6874c4bb
Issue #7367 : Add test case to test_pkgutil for walking path with
...
an unreadable directory.
2011-10-06 14:17:41 -07:00
Ned Deily
1a96f8de79
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:17:34 -07:00
Charles-François Natali
9ffcbf71a5
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-06 19:09:45 +02:00
Éric Araujo
e954ecb9ba
Branch merge
2011-10-06 13:19:34 +02:00
Amaury Forgeot d'Arc
c9539d593e
Enable the only tests for sys.gettrace
2011-10-05 22:34:51 +02:00
Senthil Kumaran
41d663f0a5
Issue13073 - Address review comments and add versionchanged information in the docs.
2011-10-05 23:52:49 +08:00
Éric Araujo
2710bc4b68
Fix typo and case in a recently added test
2011-10-05 02:35:09 +02:00
Antoine Pitrou
09debc9a5b
Avoid testing stuff that's been fixed in 2.7 on older Pythons
2011-10-04 12:00:13 +02:00
Antoine Pitrou
561a821e93
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:34:48 +02:00
Meador Inge
ad349a190e
Issue #12881 : ctypes: Fix segfault with large structure field names.
2011-10-03 21:34:04 -05:00
R David Murray
c8faf9bb0c
#4147 : minidom's toprettyxml no longer adds whitespace to text nodes.
...
Patch by Dan Kenigsberg.
2011-10-01 16:49:25 -04:00
Antoine Pitrou
f06eb46918
Issue #13034 : When decoding some SSL certificates, the subjectAltName extension could be unreported.
2011-10-01 19:30:58 +02:00
Victor Stinner
63c22fac72
Issue #7732 : Fix a crash on importing a module if a directory has the same name
...
than a Python module (e.g. "__init__.py"): don't close the file twice.
PyFile_FromFile() does also close the file if PyString_FromString() failed. It
did already close the file on fill_file_fields() error (e.g. if the file is a
directory).
2011-09-23 19:37:03 +02:00
Victor Stinner
51b719814e
Issue #12931 : xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of
...
failing with a UnicodeDecodeError.
2011-09-23 01:15:32 +02:00
Charles-François Natali
2156594d8c
Fix a race condition in test_socket.ThreadableTest: the client is reported
...
ready before having been set up.
2011-09-21 22:02:27 +02:00
Charles-François Natali
f8413b29c0
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:44:49 +02:00
Jesus Cea
c23484b21f
Close #13022 : _multiprocessing.recvfd() doesn't check that file descriptor was actually received
2011-09-21 03:47:39 +02:00
Jesus Cea
d256ca12c1
Close #13007 : whichdb should recognize gdbm 1.9 magic numbers
2011-09-19 16:57:18 +02:00
Ned Deily
1549bac6ba
Issue #12935 : Correct typo in findertools.
2011-09-15 14:07:31 -07:00
Senthil Kumaran
0d4c34c6ec
Port the fix for Issue12924 (missing quote_plus) to 2.7 branch.
2011-09-13 06:42:21 +08:00
Amaury Forgeot d'Arc
aa3af53f1f
Remove trailing spaces
2011-09-12 21:19:53 +02:00
Amaury Forgeot d'Arc
439c25eb9e
Issue #12483 : ctypes: Fix a crash when the destruction of a callback
...
object triggers the garbage collector.
2011-09-12 20:12:09 +02:00
Éric Araujo
dcdc3ef5fa
Branch merge
2011-09-12 17:47:48 +02:00
Éric Araujo
a13cd39533
Fix determination of Metadata version ( #8933 ). Patch by Filip Gruszczyński.
2011-09-10 05:39:45 +02:00
Éric Araujo
0c4007641e
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. I’ve also changed a test that used to write an invalid
config file ('[global]command_packages = etc.' on one line), but the
test passes before and after this change, so either it magically works
or the test is poorly written. Sigh.
2011-09-10 05:37:33 +02:00
Jesus Cea
6faf907e6d
Fix issue #12948 : multiprocessing test failures can hang the buildbots
2011-09-09 22:15:16 +02:00
Jesus Cea
6f6016bc59
Close issue #12948 : multiprocessing test failures can hang the buildbots
2011-09-09 20:26:57 +02:00
Jesus Cea
c6072d8675
Issue #12333 : fix test_distutils failures under Solaris and derivatives. Patch by Antoine Pitrou
2011-09-09 18:50:59 +02:00
Victor Stinner
e3a768b554
Issue #12326 : Remove plat-linux3 directory
...
sys.platform is now always 'linux2' on Linux (even on Linux 3)
2011-09-05 21:38:05 +02:00
Éric Araujo
ab08da0a1c
Branch merge
2011-09-05 17:45:48 +02:00
Lars Gustäbel
8babfdfd45
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 17:04:18 +02:00
Éric Araujo
0f2dbf3645
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:47:07 +02:00
Éric Araujo
cb18d077c6
Enable catching WARN-level logging messages in distutils' test_sdist
2011-09-03 00:28:43 +02:00
Amaury Forgeot d'Arc
cf316a171e
Issue #12764 : Fix a crash in ctypes when the name of a Structure field is not
...
a string.
2011-09-02 20:32:23 +02:00
Éric Araujo
1fc20760c7
Remove obsolete comment
2011-09-01 22:06:49 +02:00
Éric Araujo
2532f11321
Clarify compileall command-line options ( #10454 ).
...
Backport of R. David Murray’s 3.2 patch. The code is ugly, with print
statements split across lines, but the output is readable.
2011-09-01 20:04:50 +02:00
Éric Araujo
a971df3cd5
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
Amaury Forgeot d'Arc
3d7f236329
Issue #9651 : Fix a crash when ctypes.create_string_buffer(0) was passed to
...
some functions like file.write().
2011-08-30 21:04:35 +02:00
Éric Araujo
429b890561
Make bdist_* commands respect --skip-build passed to bdist ( #10946 )
2011-08-30 01:48:59 +02:00
Nadeem Vawda
66e53c70d7
Fix test failures when Python is compiled without thread support.
2011-08-29 09:37:07 +02:00
Antoine Pitrou
0ad7358c2f
Provide a better diagnosis on socket errors
2011-08-28 01:18:31 +02:00
Éric Araujo
288ebb446e
Add FIXME note as a reminder
2011-08-26 16:35:19 +02:00
Éric Araujo
1bd3b9cea0
Branch merge
2011-08-26 16:32:36 +02:00
Éric Araujo
e10fbb1550
Backport tests for the distutils install command
2011-08-26 02:06:27 +02:00
Éric Araujo
cea5fc0b7b
Try to fix test_distutils on Windows ( #12678 )
2011-08-26 02:05:44 +02:00
Éric Araujo
c811fb2d56
Add tests for build_ext --user (backport from 3.2)
2011-08-26 02:00:14 +02:00
Éric Araujo
04612d6092
Refactor helpers for compiling the xx module in distutils tests.
...
I need to copy the xxmodule.c file in other tests, 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.
I also took out the fixup_build_ext function, which is needed for tests
to pass on Unix shared builds and Windows debug builds.
Finally, I cleaned up a few things:
- don’t remove directories in tearDown when the parent class’ tearDown
has already registered the directories for removal
- simplify restoration of sys.path
- remove a few unused names found by pyflakes.
2011-08-26 01:56:15 +02:00
Charles-François Natali
2a34eb3104
Issue #12786 : Set communication pipes used by subprocess.Popen CLOEXEC to avoid
...
them being inherited by other subprocesses.
2011-08-25 21:20:54 +02:00
Raymond Hettinger
8a9369bfa4
Update link to the decimal arithmetic specification.
2011-08-24 19:13:17 -07:00
Antoine Pitrou
77657e40fa
Issue #4106 : Fix occasional exceptions printed out by multiprocessing on interpreter shutdown.
...
This bug doesn't seem to exist on 3.2, where daemon threads are killed
before Py_Finalize() is entered.
2011-08-24 22:41:05 +02:00
Antoine Pitrou
a1a8da8bf5
Issue #11657 : Fix sending file descriptors over 255 over a multiprocessing Pipe.
...
Also added some tests.
2011-08-23 19:54:20 +02:00
Charles-François Natali
cdaafe0f9e
Issue #12821 : Fix test_fcntl failures on OpenBSD 5.
2011-08-23 19:42:02 +02:00
Ezio Melotti
12682b10a7
#9200 : backport tests but run them on wide builds only.
2011-08-22 23:46:30 +03:00
Nadeem Vawda
367d4c8a80
Issue #12678 : Fix distutils sdist test on Windows.
...
Patch by Jeremy Kloth.
2011-08-21 22:40:04 +02:00
Éric Araujo
04295009b8
Add missing name in shutil.__all__
2011-08-21 16:14:01 +02:00
Sandro Tosi
a75039ad88
#5301 : add image/vnd.microsoft.icon (.ico) MIME type
2011-08-21 00:15:56 +02:00
Antoine Pitrou
808cec536a
Issue #12213 : Fix a buffering bug with interleaved reads and writes that
...
could appear on io.BufferedRandom streams.
2011-08-20 15:40:58 +02:00
Éric Araujo
410024a8fc
Branch merge
2011-08-19 14:24:38 +02:00
Nadeem Vawda
860593653b
Fix resource leaks in test_subprocess.
2011-08-19 05:22:24 +02:00
Éric Araujo
e7329f47e7
Guard shutil._make_archive against a logger=None argument.
...
Backporting two lines from the 3.x tests was enough to trigger the bug.
I also took the opportunity of making the logging call lazy.
2011-08-19 03:07:39 +02:00
Charles-François Natali
a8085d306e
Issue #12650 : fix failures on some buildbots, when a subprocess takes a long
...
time to spawn.
2011-08-19 00:26:38 +02:00
Charles-François Natali
100df0f2b0
Issue #12650 : only run the tests on Unix.
2011-08-18 17:56:02 +02:00
Charles-François Natali
b02302c5cf
Issue #12650 : Fix a race condition where a subprocess.Popen could leak
...
resources (FD/zombie) when killed at the wrong time.
2011-08-18 17:18:28 +02:00
Barry Warsaw
edfba8244c
The simplest possible fix for the regression in bug 12752 by encoding unicodes
...
to 8-bit strings.
2011-08-15 19:17:12 -04:00
Ezio Melotti
ea7b6f6e2a
#12266 : move the tests in test_unicode.
2011-08-15 10:04:28 +03:00
Ezio Melotti
15d6b65ead
#12266 : Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.
2011-08-15 09:22:24 +03:00
Senthil Kumaran
93e6a3d28f
Remove the un-exercised in-module test code.
2011-08-10 21:57:22 +08:00
Raymond Hettinger
3ea5224c43
Issue 12717: Fix-up an earlier backport in ConfigParser.
2011-08-09 12:07:15 -07:00
Sandro Tosi
1381a31e39
#12677 : correct turtle orientation in doc
2011-08-07 17:09:15 +02:00
Senthil Kumaran
ef651ac162
whitespace fix.
2011-08-07 10:03:58 +08:00
Senthil Kumaran
351950fbfc
Remove the old dead test program within the module in 2.7.
2011-08-07 10:02:49 +08:00
Senthil Kumaran
b5bd4c88b5
Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
2011-08-06 12:24:33 +08:00
Senthil Kumaran
28696fe491
add svn+ssh testcase for urljoin.
2011-08-03 22:06:05 +08:00
Senthil Kumaran
0df24c9e0c
include svn+ssh as well.
2011-08-03 18:40:18 +08:00
Senthil Kumaran
f432aeca7c
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
2011-08-03 18:31:59 +08:00
Éric Araujo
3427839c93
Branch merge
2011-08-02 20:01:54 +02:00
Éric Araujo
33af263d36
Fix incorrect mtime comparison in distutils ( #11933 ).
...
This is a regression introduced in 9211a5d7d0b4, when uses of ST_MTIME
constants were changed to uses of st_mtime attributes. As diagnosed in
the bug report, this change is not merely stylistic: st_mtime is a
float but ST_MTIME’s resolution is rounded to the seconds, so there was
a mismatch between the values seen by file_util and dep_util which
caused an sdist to be unnecessarily created a second time on an ext4
filesystem.
This patch has been tested by John S. Gruber, who reported the bug.
As this is a simple code revert, I think it’s okay to commit without a
unit test.
2011-08-02 03:16:12 +02:00
Stefan Krah
01a3ee8b21
Backport 68b5f87566fb
2011-08-02 01:17:48 +02:00
Éric Araujo
0db7f72cc7
Branch merge
2011-08-01 14:48:19 +02:00
Éric Araujo
498da2c162
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:59:28 +02:00
Benjamin Peterson
3facb8cc1a
running tests enables us to discover that they actually work
2011-07-30 23:39:39 -05:00
Senthil Kumaran
23c2104118
using test_support.transient_internet helper method in the urllib2net test.
2011-07-31 11:48:54 +08:00
Éric Araujo
560bf855d3
Fix regression with distutils MANIFEST handing ( #11104 , #8688 ).
...
The changed behavior of sdist in 2.7 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 (d29399100973 by Tarek and
f7639dcdffc3 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 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. I also removed a stanza in the docs that
was forgotten in Tarek’s first changeset.
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 02:04:00 +02:00
Éric Araujo
9a528306b9
Make “pydoc somebuiltin.somemethod” work ( #8887 )
2011-07-29 17:34:35 +02:00
Éric Araujo
345fff3de8
Remove mentions of previous license in profile module ( #12417 followup)
2011-07-28 22:27:28 +02:00
Benjamin Peterson
5ac56d275d
fix ws
2011-06-28 21:57:21 -05:00
Benjamin Peterson
1105f34a2b
update profile license ( closes #12417 )
2011-06-27 09:14:34 -05:00
Éric Araujo
fea8ac4772
Branch merge
2011-07-29 14:23:13 +02:00
Raymond Hettinger
55e5e27b74
Issue 12514: Use try/finally to assure that timeit restores GC when done.
2011-07-28 23:56:38 -07:00
Senthil Kumaran
4af1c6a4fc
Fix closes Issue11439 - Handle the SVN Keywords in 2.7 by replacing them with a high number so that code relying on them does not break.
2011-07-28 22:30:27 +08:00
Charles-François Natali
0cf7e25c28
- Issue #12603 : Fix pydoc.synopsis() on files with non-negative st_mtime.
2011-07-27 19:36:40 +02:00
Ross Lagerwall
d8e3901478
Issue #12607 : In subprocess, fix issue where if stdin, stdout or stderr is
...
given as a low fd, it gets overwritten.
2011-07-27 18:54:53 +02:00
Senthil Kumaran
7d7702b581
merge from 3.2 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.
2011-07-27 09:37:17 +08:00
Ned Deily
d8b1723965
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:16:08 -07:00
Ned Deily
d88131afd9
Issue #8746 : Use tempfile module to get tempdir and randomize the
...
link file name.
2011-07-26 13:52:14 -07:00
Antoine Pitrou
4cfae027b3
Issue #1813 : Fix codec lookup and setting/getting locales under Turkish locales.
2011-07-24 02:51:01 +02:00
Nadeem Vawda
a620facc1f
Fix typo in dbf1e1a27427 that was causing some buildbots to fail.
2011-07-23 17:04:42 +02:00
Nadeem Vawda
b42c53e442
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 15:51:16 +02:00
Senthil Kumaran
578617ad45
merge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage (cases applicable to 2.7). Patch by Petter Haggholm.
2011-07-23 18:41:43 +08:00
Benjamin Peterson
77820242dd
verify the types of AST strings and identifiers ( closes #12609 and #12610 )
2011-07-22 10:39:50 -05:00
Ezio Melotti
56b2665904
#12601 : fix typo.
2011-07-21 11:18:18 +03:00
Antoine Pitrou
495ee8f563
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
9522595d70
#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.
2011-07-18 21:34:04 -04:00
Alex Gaynor
9737648c74
Backport 2eb8789e30e7.
2011-07-17 16:44:31 -07:00
Antoine Pitrou
304f0f952d
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:22:50 +02:00
Benjamin Peterson
c3349cd22e
port 8d05f697acd4 ( #11627 )
2011-07-15 14:15:40 -05:00
Charles-François Natali
2659140a5d
Issue #12502 : asyncore: fix polling loop with AF_UNIX sockets.
2011-07-14 19:49:02 +02:00
Victor Stinner
b30ac940db
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