Éric Araujo
c9322aabaa
Merge 3.2
2011-08-20 07:10:54 +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
107d65d144
Fix typo in test names
2011-08-19 20:33:11 +02:00
Antoine Pitrou
20db51108c
Fix typo in test names
2011-08-19 20:32:34 +02:00
Antoine Pitrou
df7fc9dda7
Issue #12778 : Reduce memory consumption when JSON-encoding a large container of many small objects.
2011-08-19 18:03:14 +02:00
Éric Araujo
9bb6dfe0a8
Restore $HOME after test has run (should fix #12765 )
2011-08-19 17:47:52 +02:00
Éric Araujo
85ce247726
Branch merge
2011-08-19 14:22:52 +02:00
Éric Araujo
57bee66c03
Branch merge
2011-08-19 14:22:28 +02:00
Vinay Sajip
444be16136
Issue #12780 : Merged fix from 3.2.
2011-08-19 07:15:45 +01: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
74adbaa7bd
Merge: Fix ResourceWarnings in test_subprocess.
2011-08-19 05:14:40 +02:00
Nadeem Vawda
0d7cda3e63
Fix ResourceWarnings in test_subprocess.
2011-08-19 05:12:01 +02:00
Éric Araujo
24d6cc6f4f
Merge 3.2
2011-08-19 03:19:36 +02:00
Éric Araujo
43a7ee1f3b
Make logging call lazy
2011-08-19 02:55:11 +02:00
Éric Araujo
50e516aa8e
Improve “pysetup create” help messages.
...
The example version numbers were invalid and “package” was misused. I
also made lines shorter, replaced “e-mail” with “email” (more common in
the stdlib and I believe in English generally) and tweaked a few other
things.
2011-08-19 00:56:57 +02:00
Éric Araujo
b931ab4345
Fix typo
2011-08-19 00:53:20 +02:00
Éric Araujo
55b9fe232d
Remove class that was only useful with Sphinx autodoc
2011-08-19 00:53:04 +02:00
Charles-François Natali
2736c5d47c
Issue #12650 : fix failures on some buildbots, when a subprocess takes a long
...
time to spawn.
2011-08-19 00:25:07 +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
558639f0c9
Issue #12650 : Fix a race condition where a subprocess.Popen could leak
...
resources (FD/zombie) when killed at the wrong time.
2011-08-18 19:11:29 +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
Victor Stinner
9c3de4a883
Issue #12326 : don't test the major version of sys.platform
...
Use startswith, instead of ==, when testing sys.platform to support
new platforms like Linux 3 or OpenBSD 5.
2011-08-17 20:49:41 +02:00
Benjamin Peterson
01fc6cd056
make __doc__ mutable on heaptypes ( closes #12773 )
2011-08-17 12:03:47 -05:00
Benjamin Peterson
af3dcd2f98
improve test name
2011-08-17 11:48:23 -05:00
Benjamin Peterson
c4085c8470
complain when a class variable shadows a name in __slots__ ( closes #12766 )
2011-08-16 18:53:26 -05:00
Benjamin Peterson
51be6e0a0f
merge heads
2011-08-16 17:46:44 -05:00
Benjamin Peterson
ae6ae025d1
some *nixes decided not to call init process 1 ( closes #12763 )
2011-08-16 17:46:04 -05:00
Ezio Melotti
67321cc9b0
#9723 : refactor regex.
2011-08-16 19:03:41 +03:00
Ezio Melotti
269e3ee3db
#12266 : merge with 3.2.
2011-08-15 09:26:28 +03: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
Antoine Pitrou
85674936c7
Monotonic, not monotonous
2011-08-14 01:51:52 +02:00
Antoine Pitrou
3c7e928098
Issue #12744 : Fix inefficient representation of integers
...
between 2**31 and 2**63 on systems with a 64-bit C "long".
2011-08-13 20:15:19 +02:00
Nadeem Vawda
780199e6a3
Issue #12669 : Fix test_curses so that it can run on the buildbots.
2011-08-13 15:43:49 +02:00
Nadeem Vawda
1c38546e49
Issue #12646 : Add an 'eof' attribute to zlib.Decompress.
...
This will make it easier to detect truncated input streams.
Also, make zlib's error messages more consistent.
2011-08-13 15:22:40 +02:00
Georg Brandl
d88e5af061
Merge with cpython.
2011-08-13 11:54:33 +02:00
Georg Brandl
74b6abf61f
Merge with 3.2.
2011-08-13 11:48:40 +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
3672c4e21f
merge 3.2
2011-08-13 00:33:29 -05:00
Benjamin Peterson
963e40256a
tokenize is just broken on test_pep3131.py
2011-08-13 00:33:21 -05:00
Benjamin Peterson
478267f9c4
merge 3.2
2011-08-12 23:35:46 -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
f8e7543df9
merge 3.2 ( #12732 )
2011-08-12 22:18:19 -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
a7e33a10ae
Clean up test_shutil, to facilitate upcoming improvements ( #12721 ).
...
The tests now have two convenience functions to wrap os.path.join, open
and read or write instead of four or six slightly different functions.
The new functions accept a tuple of path segments but not a list
anymore, as it makes no sense to use a list here; I have also removed
the default value for the contents in write_file, as I find it better to
have the contents at the call site.
For simple open then read/write calls, I have left the usual idiom (with
open + read/write), as it is short and readable enough.
I’ve also changed some convoluted cleanup code to just use rmtree, and
removed dubious LBYL os.path.exists checks. The tests still pass on my
machine, and leave no file in $TMP. test_shutil is not as clean as it
could be, but I’ll stop here.
Initial patch provided by Hynek Schlawack, in preparation for a new
feature with new tests in #12715 .
2011-08-12 19:51:35 +02:00
Éric Araujo
14eba5fa41
Brench merge
2011-08-12 17:59:25 +02:00
Éric Araujo
28d39a0c08
Branch merge
2011-08-12 17:40:25 +02:00
Éric Araujo
4460abea64
Use our existing drop-in, no-op decorator instead of redefining it.
...
Patch by Francisco Martin Brugue.
2011-08-12 00:15:41 +02:00
Antoine Pitrou
fdf4a27422
Issue #12687 : Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles.
2011-08-11 21:15:53 +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
5b0a4d22c5
merge from 3.2
2011-08-11 09:25:45 +08: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
cfcc9779fc
Remove unused names in except clauses
2011-08-10 20:54:33 +02:00
Éric Araujo
25785e9ca5
Revert cosmetic change.
...
A reminder: distutils only gets bug fixes. Cosmetic changes, especially
in tests, are not worth the time spent, and can even make future merges
of bugfixes a bit less easy.
2011-08-10 02:46:33 +02:00
Éric Araujo
7fc0394a12
Avoid unwanted behavior change in shlex.quote (see #9723 ).
...
I simplified the quote code to use a regex instead of a loop+test when I
moved pipes.quote to shlex in 5966eeb0457d; Ezio Melotti pointed out
that my regex contained redundant parts (now removed) and allowed
non-ASCII characters (now disallowed).
I think common UNIX shells don’t quote non-ASCII characters, but there’s
no harm in doing so. We’ll see if users request a change.
2011-08-09 23:18:06 +02:00
Benjamin Peterson
71ce8970cf
fix indentation
2011-08-09 16:17:12 -05:00
Benjamin Peterson
e451ec393f
merge heads
2011-08-09 16:16:33 -05:00
Benjamin Peterson
832bfe2ebd
add a AST validator ( closes #12575 )
2011-08-09 16:15:04 -05: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
Raymond Hettinger
fcb393c018
Add support for unary plus and unary minus to collections.Counter()
2011-08-09 13:00:40 -07:00
Éric Araujo
19272beec9
Branch merge
2011-08-09 18:01:52 +02:00
Victor Stinner
a8db378434
Issue #12700 : fix test_faulthandler for Mac OS X Lion
...
Read from NULL raises SIGILL, not SIGSEGV, on Mac OS X Lion.
2011-08-08 22:43:45 +02:00
Éric Araujo
5c3f648c0c
Branch merge
2011-08-08 16:56:17 +02:00
Éric Araujo
e4d5b8e646
Clean up shutil.disk_usage.
...
- Move a test from call time to define time
- Add the function name to __all__
- Improve docstring and docs
A few lines are now duplicated (named tuple definition and docstring)
but I think the end result reads better.
2011-08-08 16:51:11 +02:00
Sandro Tosi
c42a568cd4
#12677 : merge with 3.2
2011-08-07 17:13:13 +02:00
Sandro Tosi
2a389e4601
#12677 : correct turtle orientation in doc
2011-08-07 17:12:19 +02:00
Senthil Kumaran
0c8108914e
merge from 3.2 - Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
2011-08-06 12:28:16 +08: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
Sandro Tosi
4dc9c84ed9
#11572 : improvements to copy module tests along with removal of old test suite
2011-08-05 23:05:35 +02:00
Éric Araujo
29f6297605
Fix wrong use of root logger in packaging (also a NameError)
2011-08-04 17:17:07 +02:00
Ned Deily
2ef905d449
Issue #12540 : Prevent zombie IDLE processes on Windows due to changes
...
in os.kill(). Original patch by Eli Bendersky.
2011-08-04 23:38:19 -07:00
Brett Cannon
252365bab8
Silence the altered state warning about threadgs when running test_httplib.
2011-08-04 22:43:11 -07:00
Brett Cannon
40ccea7e1e
Silence altered execution state warnings from test_telnetlib involving threads.
2011-08-04 22:37:55 -07:00
Brett Cannon
a4265546f9
Explicitly close a file to stop raising a ResourceWarning.
2011-08-04 21:34:52 -07:00
Senthil Kumaran
12fe95351b
merge from 3.2 - change the extra svn to svn+ssh
2011-08-03 22:09:51 +08: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
8283a622fc
merge heads
2011-08-03 18:45:02 +08:00
Senthil Kumaran
8a984b58b7
merge from 3.2 - Fix closes issue12683 - urljoin to work with relative join of svn scheme.
2011-08-03 18:44:10 +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
83fad3e2ce
Merge with 3.2.
2011-08-03 08:29:12 +02:00
Georg Brandl
25e2cd1388
Fix spacing in string literal.
2011-08-03 08:27:00 +02:00
Benjamin Peterson
43234ab685
handle sched_rr_get_interval not working on current
2011-08-02 22:19:14 -05:00
Benjamin Peterson
50ba271dbb
fix punctuation
2011-08-02 22:15:40 -05:00
Benjamin Peterson
c158158086
fix indentation
2011-08-02 22:10:55 -05:00
Benjamin Peterson
b0fc9c4d0a
merge heads
2011-08-02 22:09:56 -05:00
Benjamin Peterson
539b6c41ff
OSX doesn't check sched_get_priority_(min/max) argument
2011-08-02 22:09:37 -05:00
Eli Bendersky
2b6ee28630
Issue #11049 : fix test_forget on installed Python - add os.curdir to sys.path
2011-08-03 05:18:33 +03: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
Benjamin Peterson
18592ca589
bsd doesn't like letting normal processes set the scheduler
2011-08-02 18:48:59 -05:00
Benjamin Peterson
c5fce4ded2
check individually for some for sched_ functions
2011-08-02 18:07:32 -05:00
Benjamin Peterson
2740af8cc4
sched.h can exist without sched affinity support
2011-08-02 17:41:34 -05:00
Benjamin Peterson
94b580d423
expose sched.h functions ( closes #12655 )
2011-08-02 17:30:04 -05:00
Benjamin Peterson
7761b951db
add ThreadError to threading.__all__ ( closes #12679 )
2011-08-02 13:05:47 -05:00
Senthil Kumaran
d61535d50b
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:34:53 +08: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
Eli Bendersky
8db645f722
Issue #11049 : fix test_forget to work on installed Python, by using a temporary module for import/forget
2011-08-02 06:24:31 +03:00
Stefan Krah
d9c665b60e
Merge 68b5f87566fb
2011-08-02 01:12:16 +02: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
Nadeem Vawda
3c01d16ed9
Issue #11651 : Move options for running tests into a Python script.
...
This will be particularly useful to Windows users.
run_tests.py originally written by Brett Cannon.
2011-08-01 23:48:26 +02:00
Éric Araujo
eec1ed8119
Merge #12295 fix from 3.2
2011-08-01 17:31:12 +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
cee6bb5499
Fix bug I unwittingly added in 1521d9837d16 (found by Ezio Melotti)
2011-08-01 15:29:07 +02:00
Éric Araujo
7dfdac0b5a
Branch merge
2011-08-01 14:44:17 +02:00
Éric Araujo
2ffea0e8d7
Branch merge
2011-08-01 14:43:45 +02:00
Éric Araujo
b85b966de6
Stop trying to write into the stdlib during packaging tests ( #12331 ).
...
This prevents tests from failing when run from a Python installed in a
read-only directory. The code is a bit uglier; shutil.copytree calls
copystat on directories behind our back, so I had to add an os.walk
with os.chmod (*and* os.path.join!) calls. shutil, I am disappoint.
This changeset is dedicated to the hundreds of neurons that were lost
while I was debugging this on an otherwise fine afternoon.
2011-07-31 20:47:47 +02:00
Éric Araujo
ad548b8534
Merge fixes for #9860 , #11104/#8688 and #12331 from 3.2
2011-07-31 18:33:00 +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
2f7c695b97
using support.transient_internet helper method in the urllib2net test.
2011-07-31 11:46:24 +08: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
Senthil Kumaran
b351a48eee
Addressing the review comments by Antoine Pitrou for smtplib.py and test_smtplib.py. Review comments by Ezio Melotti for smtplib.rst
2011-07-31 09:14:17 +08:00
Nadeem Vawda
3fc5868a1d
test_smtpnet: Skip STARTTLS test if the server doesn't support it.
...
This issue can arise with ISPs that redirect all connections on port 25 to
their own (crappy) mail servers.
2011-07-30 23:46:54 +02:00
Senthil Kumaran
193cd2fb26
merge heads.
2011-07-30 10:57:28 +08:00
Senthil Kumaran
3d23fd6493
Fix closes Issue11281 - smtplib.STMP gets source_address parameter, which adds the ability to bind to specific source address on a machine with multiple interfaces. Patch by Paulo Scardine.
2011-07-30 10:56:50 +08:00
Benjamin Peterson
18d7d7a217
also make NotImplementedType callable
2011-07-29 18:27:44 -05:00
Benjamin Peterson
d83be998fc
merge heads
2011-07-29 18:20:35 -05:00
Benjamin Peterson
c4607aeedd
make the types of None and Ellipsis callable
2011-07-29 18:19:43 -05:00
Antoine Pitrou
f83e4acbae
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:57:10 +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
Benjamin Peterson
ce071ca4e7
bytes should be verboten in sum() ( fixes #12654 )
2011-07-29 14:23:47 -05:00
Charles-François Natali
e12c0b1767
Issue #12464 : tempfile.TemporaryDirectory.cleanup() should not follow symlinks:
...
fix it. Patch by Petri Lehtinen.
2011-07-29 19:00: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
c473f8ceac
Merge fix for #8887 from 3.2
2011-07-29 17:38:23 +02:00
Éric Araujo
e64e51bfa7
Make “pydoc somebuiltin.somemethod” work ( #8887 )
2011-07-29 17:03:55 +02:00
Éric Araujo
0bbacc621c
Branch merge
2011-07-29 14:30:03 +02:00
Éric Araujo
158d7696f3
Branch merge
2011-07-29 14:24:08 +02:00
Raymond Hettinger
abe9dc3f30
Issue 12514: Use try/finally to assure that timeit restores GC when done.
2011-07-29 00:08:19 -07: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
Eli Bendersky
906b88fb2a
Issue #12380 : PyArg_ParseTuple now accepts a bytearray for the 'c' format.
...
As a side effect, this now allows the rjust, ljust and center methods of
bytes and bytearray to accept a bytearray argument.
Patch by Petri Lehtinen
2011-07-29 07:05:08 +03:00
Éric Araujo
bab50cb124
Minor packaging cleanup.
...
- Use shortcut dist.version instead of going through metadata;
- Use %r throughout to display project names and paths.
2011-07-29 02:37:21 +02:00
Éric Araujo
7b0908a8e4
Make TypeError message from Command.__init__ more useful
2011-07-29 02:32:41 +02:00
Éric Araujo
943006bf68
Let all pysetup actions return a meaningful 0 or 1 exit code ( #12222 ).
...
This will help scripts calling pysetup know if a command failed.
Printing/logging was also made more consistent, and a few things were
cleaned up. In particular, the error/Ctrl-C handling was moved from the
_run function up to the main function.
The run action is not fixed yet; it returns the dist.Distribution
instance, which is needed by test_uninstall and not trivial to fix.
2011-07-29 02:31:39 +02:00
Éric Araujo
73c175f5a0
Let pysetup list exit with a non-zero code when no result is found ( #11409 ).
...
“pysetup list” or “pysetup list --all” will continue to return 0 if no
distribution is found (it’s not an error), but “pysetup list
some.project” will now exit with 1 if no matching installed distribution
is found. Based on a patch by Kelsey Hightower.
2011-07-29 02:20:39 +02:00
Éric Araujo
2527796a22
Merge from 3.2 ( #10318 , #12255 , #12043 , #12417 and other fixes)
2011-07-29 03:11:09 +02:00
Éric Araujo
1e3a68d36b
Modernize modulefinder module and tests a bit.
...
The tests don’t use an internal distutils function anymore, and use
regular assertEqual with sorted lists instead of a convoluted manual
diff.
2011-07-28 23:35:29 +02: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
Raymond Hettinger
66d2be8986
Issue 12647: Add __bool__() method to the None object.
2011-07-28 09:55:13 -07:00
Senthil Kumaran
a2250e61db
merge from 3.2 - 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 23:39:08 +08: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
Éric Araujo
0cdd4454f3
Remove indirection in threading (issue #10968 ).
...
The public names (Thread, Condition, etc.) used to be factory functions
returning instances of hidden classes (_Thread, _Condition, etc.),
because (if Guido recalls correctly) this code pre-dates the ability to
subclass extension types.
It is now possible to inherit from Thread and other classes, without
having to import the private underscored names like multiprocessing did.
A doc update will follow: a patch is under discussion on the issue.
2011-07-28 00:28:28 +02:00
Charles-François Natali
fd96eb2a68
Issue #11871 : In test_threading.BarrierTests, bump the default barrier timeout
...
to avoid timing-dependent failures.
2011-07-27 21:28:23 +02: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
7a2f0c7802
Issue #12603 : Fix pydoc.synopsis() on files with non-negative st_mtime.
2011-07-27 19:42:05 +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
Eli Bendersky
d18a047d58
Issue #11049 : added test_support to regrtest.STDTESTS list
2011-07-27 20:21:45 +03:00
Éric Araujo
9bce311ea4
Add shlex.quote function, to escape filenames and command lines ( #9723 ).
...
This function used to live as pipes.quote, where it was undocumented but
used anyway. (An alias still exists for backward compatibility.) The
tests have been moved as is, but the code of the function was changed to
use a regex instead of a loop with string comparisons (at Ian Bicking’s
suggestion). I’m terrible at regexes, so any feedback is welcome.
2011-07-27 18:29:31 +02:00
Ross Lagerwall
114f0e499d
Issue #12607 : Merge with 3.2.
2011-07-27 07:39:27 +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
4d90b19373
merge from 3.2 - Correcting issue 12576 fix, which resulted in buildbot failures.
2011-07-27 09:32:04 +08:00
Senthil Kumaran
45686b472b
Correcting issue 12576 fix, which resulted in buildbot failures.
2011-07-27 09:31:03 +08:00
Ned Deily
12aa1aea67
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:19:09 -07: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
7496fef8ff
merge from 3.2 - Fix closes Issue12576 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.
2011-07-27 08:06:44 +08: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
Antoine Pitrou
d05066d1ee
Try to fix weird buildbot failures
2011-07-26 23:55:33 +02:00
Ned Deily
0975dedfe0
Issue #8746 : Use tempfile module to get tempdir and randomize the
...
link file name.
2011-07-26 13:56:49 -07: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
Antoine Pitrou
83d21930ab
Add debug output for failing buildbot
2011-07-26 14:45:22 +02:00
Vinay Sajip
8188f585b2
Fixes #12637 : Merged fix from 3.2 and added test.
2011-07-25 19:58:13 +01: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
5a24d82941
Add a test for issue #1813 : getlocale() failing under a Turkish locale
...
(not a problem under 3.x)
2011-07-24 02:41:54 +02: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
8dbd8573e5
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:37:52 +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
e02891b459
Issue #12591 : Improve support of "universal newlines" in the subprocess
...
module: the piped streams can now be properly read from or written to.
2011-07-23 22:04:41 +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
d42c1d09e9
Issue #12591 : Allow io.TextIOWrapper to work with raw IO objects (without
...
a read1() method), and add a *write_through* parameter to
mandate unbuffered writes.
2011-07-23 21:50:21 +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
0200016132
Merge: #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:25:45 +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
Eli Bendersky
7cd94a1e23
Issue #11049 : skip a test that fails on some buildbots
2011-07-23 15:00:31 +03:00
Senthil Kumaran
714c53c540
merge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage. Patch by Petter Haggholm.
2011-07-23 18:28:43 +08: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
Eli Bendersky
d11c3e32c5
fixing whitespace in the previous commit
2011-07-23 08:51:14 +03:00
Eli Bendersky
6c51999221
Issue #11049 : adding some tests to test.support
...
Based on original patch by Giampaolo Rodola with contributions from R. David Murray
2011-07-23 08:48:53 +03:00
Benjamin Peterson
86f088e8e5
merge 3.2
2011-07-22 10:55:02 -05: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
a30def6c66
#12601 : merge with 3.2.
2011-07-21 11:17:05 +03:00
Ezio Melotti
1beea5b7c1
#12601 : fix typo.
2011-07-21 11:16:32 +03:00
Antoine Pitrou
d649480739
Issue #12551 : Provide a get_channel_binding() method on SSL sockets so as
...
to get channel binding data for the current SSL session (only the
"tls-unique" channel binding is implemented). This allows the
implementation of certain authentication mechanisms such as SCRAM-SHA-1-PLUS.
Patch by Jacek Konieczny.
2011-07-21 01:11:30 +02:00
R David Murray
875048bd4c
#665194 : support roundtripping RFC2822 date stamps in the email.utils module
2011-07-20 11:41:21 -04:00
Antoine Pitrou
fb96089b13
Fix test_multiprocessing failure under Windows.
...
(followup to dfaa3a149a92)
2011-07-20 02:01:39 +02:00