Thomas Heller
7a352c0ed8
Issue #5042 : Structure sub-subclass does now initialize correctly with
...
base class positional arguments.
2009-09-18 18:55:17 +00:00
Georg Brandl
195261f823
Optimize optimization and fix method name in docstring.
2009-09-18 16:19:56 +00:00
Georg Brandl
b019951875
Use str.format() to fix beginner's mistake with %-style string formatting.
2009-09-18 13:57:11 +00:00
Georg Brandl
c40e60e5e5
#6938 : "ident" is always a string, so use a format code which works.
2009-09-18 09:18:27 +00:00
Georg Brandl
097f70881a
#6905 : use better exception messages in inspect when the argument is of the wrong type.
2009-09-18 09:14:52 +00:00
Georg Brandl
ebf3adc4fe
#6844 followup: the warning when setting Exception.message was removed, do not test for it.
2009-09-17 11:48:31 +00:00
Georg Brandl
e9741f3ed8
Issue #6922 : Fix an infinite loop when trying to decode an invalid
...
UTF-32 stream with a non-raising error handler like "replace" or "ignore".
2009-09-17 11:28:09 +00:00
Benjamin Peterson
4d714cbbf1
kill bare except
2009-09-17 02:46:54 +00:00
Georg Brandl
0674d3fb5f
#6844 : do not emit DeprecationWarnings on access if Exception.message has been set by the user.
...
This works by always setting it in __dict__, except when it's implicitly set in __init__.
2009-09-16 20:30:09 +00:00
Thomas Wouters
c4dcb3801e
Fix issue #1590864 , multiple threads and fork() can cause deadlocks, by
...
acquiring the import lock around fork() calls. This prevents other threads
from having that lock while the fork happens, and is the recommended way of
dealing with such issues. There are two other locks we care about, the GIL
and the Thread Local Storage lock. The GIL is obviously held when calling
Python functions like os.fork(), and the TLS lock is explicitly reallocated
instead, while also deleting now-orphaned TLS data.
This only fixes calls to os.fork(), not extension modules or embedding
programs calling C's fork() directly. Solving that requires a new set of API
functions, and possibly a rewrite of the Python/thread_*.c mess. Add a
warning explaining the problem to the documentation in the mean time.
This also changes behaviour a little on AIX. Before, AIX (but only AIX) was
getting the import lock reallocated, seemingly to avoid this very same
problem. This is not the right approach, because the import lock is a
re-entrant one, and reallocating would do the wrong thing when forking while
holding the import lock.
Will backport to 2.6, minus the tiny AIX behaviour change.
2009-09-16 19:55:54 +00:00
Georg Brandl
69dfe8d80e
Make the pdb displayhook compatible with the standard displayhook: do not print Nones. Add a test for that.
2009-09-16 16:36:39 +00:00
Georg Brandl
6c39f06ab2
Remove some more boilerplate from the actual tests in test_pdb.
2009-09-16 16:22:12 +00:00
Ronald Oussoren
0180565054
Update distutils.util tests after my changes
...
to --with-universal-archs
2009-09-15 21:24:07 +00:00
Ronald Oussoren
5d90029041
Finish support for --with-universal-archs=intel
...
and --with-universal-archs=3-way (issue6245)
2009-09-15 19:13:15 +00:00
Michael Foord
e91ea56b30
Test discovery in unittest will only attempt to import modules that are importable; i.e. their names are valid Python identifiers. If an import fails during discovery this will be recorded as an error and test discovery will continue. Issue 6568.
2009-09-13 19:07:03 +00:00
Michael Foord
5a9719d627
unittest.TestLoader.loadTestsFromName honors the loader suiteClass attribute. Issue 6866.
2009-09-13 17:28:35 +00:00
Michael Foord
c3f79373e8
Objects that compare equal automatically pass or fail assertAlmostEqual and assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
2009-09-13 16:40:02 +00:00
Matthias Klose
924eab64a3
Issue #6635 : Fix profiler printing usage message.
2009-09-13 15:09:24 +00:00
Ezio Melotti
1036a7f7e1
#6026 - fix tests that failed without zlib
2009-09-12 14:43:43 +00:00
Lars Gustäbel
21121e64b4
Issue #6856 : Add a filter keyword argument to TarFile.add().
...
The filter argument must be a function that takes a TarInfo
object argument, changes it and returns it again. If the
function returns None the TarInfo object will be excluded
from the archive.
The exclude argument is deprecated from now on, because it
does something similar but is not as flexible.
2009-09-12 10:28:15 +00:00
Benjamin Peterson
93ed82048f
revert unintended changes
2009-09-09 11:42:57 +00:00
Benjamin Peterson
8246968b12
tabbify
2009-09-09 11:40:54 +00:00
Tarek Ziadé
bed26a3ce3
Issue #6163 : Fixed HP-UX runtime library dir options in distutils.unixcompiler
2009-09-09 08:14:20 +00:00
Mark Dickinson
5cfa8044ff
Issue #6857 : Fix Decimal formatting to be consistent with existing float
...
formatting: both are now right-aligned by default.
2009-09-08 20:20:19 +00:00
Mark Dickinson
968f1690d3
#Issue 6795: Fix infinite recursion in long(Decimal('nan')); change int(Decimal('nan')) to raise ValueError instead of either returning NaN or raising InvalidContext.
2009-09-07 18:04:58 +00:00
Mark Dickinson
491ea55f28
Issue #6850 : Fix bug in Decimal._parse_format_specifier for formats
...
with no type specifier.
2009-09-07 16:17:41 +00:00
Ronald Oussoren
626faeb77b
Fix for issue 4937
2009-09-06 12:23:18 +00:00
Mark Dickinson
c8a7c7c3b9
Issue #6846 : bytearray.pop was returning ints in the range [-128, 128)
...
instead of [0, 256). Thanks Hagen Fürstenau for the report and fix.
2009-09-06 10:03:31 +00:00
Ronald Oussoren
2596758cb4
Fix build issues on OSX 10.6 (issue 6802)
2009-09-06 10:00:26 +00:00
Chris Withers
68c6e92fd4
Fixes issue #6838 : use a list to accumulate the value instead of repeatedly concatenating strings.
2009-09-04 16:12:32 +00:00
Georg Brandl
ed4ca821f1
#5101 : add back tests to test_funcattrs that were lost during unittest conversion, and make some PEP8 cleanups.
2009-09-04 11:19:34 +00:00
Georg Brandl
d22b9519d1
Issue #5275 : In Cookie's Cookie.load(), properly handle non-string arguments as documented.
2009-09-04 08:17:04 +00:00
Georg Brandl
2e1308f520
Issue #2666 : Handle BROWSER environment variable properly for unknown browser names in the webbrowser module.
2009-09-04 06:59:20 +00:00
Brett Cannon
e7e941e7f7
test_platform fails on OS X Snow Leopard because the UNIX command to get the
...
canonical version, sw_vers, leaves off trailing zeros in the version number
(e.g. 10.6 instead of 10.6.0). Test now compensates by tacking on extra zeros
for the test comparison.
Fixes issue #6806 .
2009-09-03 21:25:21 +00:00
Armin Rigo
ffd0dc1e8b
Sorry, sorry! Ignore my previous two commits. I mixed up the version
...
of python with which I tried running the crashers. They don't crash
the current HEAD.
2009-09-03 19:45:27 +00:00
Armin Rigo
f866fbb303
Does not terminate: consume all memory without responding to Ctrl-C.
...
I am not too sure why, but you can surely find out by gdb'ing a bit...
2009-09-03 19:42:03 +00:00
Armin Rigo
f416690490
Found the next crasher by thinking about this logic in PyPy.
2009-09-03 19:40:07 +00:00
Benjamin Peterson
6fcf9b50bc
remove the check that classmethod's argument is a callable
2009-09-01 22:27:57 +00:00
Amaury Forgeot d'Arc
fff896b309
#6750 : TextIOWrapped could duplicate output when several threads write to it.
...
this affect text files opened with io.open(), and the print() function of py3k
2009-08-29 18:14:40 +00:00
Lars Gustäbel
f7cda5287d
Issue #6054 : Do not normalize stored pathnames.
...
No longer use tarfile.normpath() on pathnames. Store pathnames
unchanged, i.e. do not remove "./", "../" and "//" occurrences.
However, still convert absolute to relative paths.
2009-08-28 19:23:44 +00:00
Benjamin Peterson
cc54622651
remove more code for restricted execution
2009-08-28 16:49:56 +00:00
Benjamin Peterson
f6348f4589
restricted environments are no more
2009-08-28 16:48:03 +00:00
Mark Dickinson
7a7739d75e
Issue #6794 : Fix handling of NaNs in Decimal.compare_total and
...
Decimal.compare_total_mag.
2009-08-28 13:25:02 +00:00
Kristján Valur Jónsson
429677ec38
Issue 6654
...
Allow the XML-RPC server to use the HTTP request path when dispatching. Added a MultiPathXMLRPCServer class that uses the feature, plus unit tests.
2009-08-27 23:13:18 +00:00
Kristján Valur Jónsson
e2a77980b6
issue 6275
...
Add an "exc_value" attribute to the _AssertRaisesContext context manager in the unittest package. This allows further tests on the exception that was raised after the context manager exits.
2009-08-27 22:20:21 +00:00
Kristján Valur Jónsson
68b0731b94
issue 6769
...
fix a mistake in instantiatiating the HTTPSConnection class.
2009-08-24 11:39:31 +00:00
Tarek Ziadé
764fc235a6
#6693 : New functions in site.py to get user/global site packages paths.
2009-08-20 21:23:13 +00:00
Gregory P. Smith
77db0165eb
comment typo fix
2009-08-20 09:38:43 +00:00
Gregory P. Smith
e2ae86a19e
Revert the changes from r74463, they were causing test_xmlrpc to fail.
...
We do not need to force a close when using socket buffering on a
httplib.HTTPRequest as the library does not support streaming requests
so there should never been extra data beyond the end of the current
request to have left over in the requests socket buffer.
see http://bugs.python.org/issue6724
2009-08-19 05:33:48 +00:00
Guilherme Polo
6f1fa214c5
Added missing static option for OptionMenu. Issue #5961 .
2009-08-18 16:39:36 +00:00
Guilherme Polo
7b50c4fa7c
Issue #1356969 : Add missing info methods in Tix.HList.
2009-08-18 14:46:57 +00:00
Guilherme Polo
397bd1e740
Fixes for Tix.Grid from issue #1522587 .
2009-08-18 14:34:44 +00:00
Guilherme Polo
6b3c7098f3
Issue #1522587 : New constants and methods for the Tix.Grid widget.
2009-08-18 14:23:00 +00:00
Guilherme Polo
57f9b7298a
Mark the "radio" option of Tix.CheckList as static.
2009-08-18 13:33:30 +00:00
Guilherme Polo
6c823f8720
Issue #1250469 : Fix the return value of Tix.PanedWindow.panes.
2009-08-18 13:29:20 +00:00
Guilherme Polo
d3e6e4bb8f
Issue #1119673 : Do not override Tkinter.Text methods when creating a ScrolledText.
2009-08-18 13:23:08 +00:00
Tarek Ziadé
9132916efb
fixed typo
2009-08-18 08:21:49 +00:00
Tarek Ziadé
1c8c9d1264
added more test coverage for distutils.filelist to prevent regressions when fnmatch or re are changed
2009-08-18 08:16:33 +00:00
Tarek Ziadé
e2f35c3588
module cleanup
2009-08-17 21:48:22 +00:00
Tarek Ziadé
98026f1521
fixed how fnmatch.translate is used (since it has changed in r74475 for #6665 ). Now the code is not harcoding the usage of $ anymore
2009-08-17 21:28:34 +00:00
Gregory P. Smith
99954c9c45
Clean up the C library import code (based on suggestions in issue6281).
2009-08-16 21:54:45 +00:00
Frank Wierzbicki
df756775f5
Add test of file.write(array) extracted from Jython.
2009-08-16 20:22:51 +00:00
Gregory P. Smith
b98d6b2cbc
Issue 6665: Fix fnmatch to properly match filenames with newlines in them.
2009-08-16 18:52:58 +00:00
Benjamin Peterson
c0ba828857
better col_offsets for "for" statements with tuple unpacking #6704
...
Patch from Frank Wierzbicki.
2009-08-15 22:59:21 +00:00
Gregory P. Smith
8cabfa352b
Force the http connection to close after any request returned when
...
buffering=True as our buffered data is not known to the HTTPConnection and may
contain data needed by a future request if the connection were left open.
See http://bugs.python.org/issue2576 and http://bugs.python.org/issue4879 .
2009-08-15 22:39:03 +00:00
Benjamin Peterson
4c6e8088f5
#6707 fix a crash with dir() on an uninitialized module
2009-08-15 13:16:38 +00:00
Guilherme Polo
75e1f9985a
Clarifying Entry.selection_present's docstring.
2009-08-14 14:43:43 +00:00
Guilherme Polo
e45f017023
Issue #1135 : Add the XView and YView mix-ins to avoid duplicating
...
the xview* and yview* methods.
2009-08-14 14:36:45 +00:00
Guilherme Polo
f198ac2db2
Issue #3926 : Fix the usage of the new showwarnings and formatwarning.
2009-08-14 14:03:07 +00:00
Guilherme Polo
86b882f3a6
Issue #3344 : Replace itertools.count by enumerate.
2009-08-14 13:53:41 +00:00
Brett Cannon
764465f315
Expat could crash if given the wrong kind of input by never stopping its
...
tokenizing step.
Thanks to Ivan Krstić for the patch.
2009-08-13 19:27:12 +00:00
Gregory P. Smith
c4ad0345cf
Fix issue1628205: Socket file objects returned by socket.socket.makefile() now
...
properly handles EINTR within the read, readline, write & flush methods.
The socket.sendall() method now properly handles interrupted system calls.
2009-08-13 18:54:50 +00:00
Antoine Pitrou
20e1f932fa
Issue #6629 : Fix a data corruption issue in the new `io` package, which could
...
occur when writing to a BufferedRandom object (e.g. a file opened in "rb+" or
"wb+" mode) after having buffered a certain amount of data for reading. This
bug was not present in the pure Python implementation.
Yes, this is a serious issue.
2009-08-06 20:18:29 +00:00
Jesse Noller
8497efeb40
Fix issue 4660: spurious task_done errors in multiprocessing, remove doc note for from_address
2009-08-06 02:05:56 +00:00
Guilherme Polo
175e0bf8ca
Typo.
2009-08-05 23:48:26 +00:00
Guilherme Polo
3d75555b2b
Easier reference to find (at least while svn continues being used).
2009-08-05 16:51:41 +00:00
Mark Dickinson
4b45673473
Issue #6620 : Slightly safer code for _grouping_intervals in the locale
...
module. Fixes a 'possible use before assignment' warning from pylint.
Thanks Vincent Legoll.
2009-08-04 21:56:04 +00:00
Raymond Hettinger
8fdab95260
Issue 6637: defaultdict.copy() failed with an empty factory.
2009-08-04 19:08:05 +00:00
Frank Wierzbicki
6c0f337904
Adding tests derived from the Jython project. These are primarily tests of
...
'single' statements with partial sentences (so they test things like "try:" in
interactive mode). Others tests hit areas that previously failed in Jython. A
couple still fail in Jython, mainly due to the difficulty of parsing partial
sentences (but should be fixed by Jython 2.6).
2009-08-02 20:37:48 +00:00
Mark Dickinson
9a6d6c93b4
Issue #6619 : Remove duplicate 'isgenerator' function from inspect module.
...
Thanks Vincent Legoll.
2009-08-02 15:40:11 +00:00
Mark Dickinson
4326ad8f72
Issue #6595 : Allow Decimal constructor to accept non-European decimal
...
digits, as recommended by the specification. (Backport of r74279 from
py3k.)
2009-08-02 10:59:36 +00:00
Amaury Forgeot d'Arc
3e5b027a64
#6511 : ZipFile will now raise BadZipfile when opening an empty or tiny file,
...
like it does for larger invalid files.
2009-07-28 22:15:30 +00:00
Amaury Forgeot d'Arc
e55df1fa2a
"Fix" for the refleak report: the ABC classes are now in the _pyio module
2009-07-28 20:47:55 +00:00
Mark Dickinson
fe67bd9168
Issue #6561 : '\d' regular expression should not match characters of
...
category [No]; only those of category [Nd]. (Backport of r74237
from py3k.)
2009-07-28 20:35:03 +00:00
Raymond Hettinger
c2b9e1a134
Issue 6573: Fix set.union() for cases where self is in the argument chain.
2009-07-27 20:32:04 +00:00
Michael Foord
fb0e0570f7
Issue 6581. Michael Foord
2009-07-26 21:12:14 +00:00
Amaury Forgeot d'Arc
74b3016783
#6553 : crash in cPickle.load(), when given a StringIO with incomplete data.
...
Will backport to 2.6, 3.x already fixed a similar issue with issue4298.
2009-07-23 19:26:02 +00:00
Benjamin Peterson
39186bcda0
use bools for autoraise
2009-07-23 14:19:08 +00:00
R. David Murray
46ca2f25eb
Backport of fix for issue 6542: make sure
...
test_os.TestInvalidFD.test_closerange does not close any
valid file descriptors.
2009-07-22 17:22:58 +00:00
Georg Brandl
ec812caf5d
Issue #6540 : Fixed crash for bytearray.translate() with invalid parameters.
2009-07-22 11:57:15 +00:00
Tarek Ziadé
af2406f215
Issue #6545 : Removed assert statements in distutils.Extension, so the behavior is similar when used with -O
2009-07-22 08:55:19 +00:00
Thomas Heller
d8431ae3bd
Revert rev 74134, as it does not completely fixx issue #6493 .
2009-07-21 19:04:02 +00:00
Thomas Heller
6adda9641d
Issue #6493 : Fix a ctypes problem setting bitfields more than 31 bits
...
wide.
2009-07-21 06:27:14 +00:00
Benjamin Peterson
4d4b7398a2
Merged revisions 74121-74122 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r74121 | benjamin.peterson | 2009-07-20 15:40:59 -0500 (Mon, 20 Jul 2009) | 1 line
try to make warning tests more robust
........
r74122 | benjamin.peterson | 2009-07-20 15:44:14 -0500 (Mon, 20 Jul 2009) | 1 line
platform compat
........
2009-07-20 21:09:45 +00:00
Benjamin Peterson
4879c907ce
the Slice in x[::] has to have step as None to help the interpreter
2009-07-20 20:28:08 +00:00
Benjamin Peterson
a2514f4ce9
Merged revisions 74116 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r74116 | benjamin.peterson | 2009-07-20 12:22:35 -0500 (Mon, 20 Jul 2009) | 1 line
placate windows
........
2009-07-20 17:24:30 +00:00
Benjamin Peterson
840077cd31
Merged revisions 73771,73811,73840,73842,73848-73849,73861,73957-73960,73964-73969,73972-73974,73977,73981,73984,74065,74113 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r73771 | benjamin.peterson | 2009-07-02 10:56:55 -0500 (Thu, 02 Jul 2009) | 1 line
force the imports fixer to be run after the import one #6400
........
r73811 | benjamin.peterson | 2009-07-03 09:03:14 -0500 (Fri, 03 Jul 2009) | 1 line
check for sep, not pathsep when looking for a subpackage #6408
........
r73840 | benjamin.peterson | 2009-07-04 09:52:28 -0500 (Sat, 04 Jul 2009) | 1 line
don't print diffs by default; it's annoying
........
r73842 | benjamin.peterson | 2009-07-04 09:58:46 -0500 (Sat, 04 Jul 2009) | 1 line
complain when not showing diffs or writing
........
r73848 | alexandre.vassalotti | 2009-07-04 23:38:19 -0500 (Sat, 04 Jul 2009) | 2 lines
Fix test_refactor_stdin to handle print_output() method with 4 arguments.
........
r73849 | alexandre.vassalotti | 2009-07-04 23:43:18 -0500 (Sat, 04 Jul 2009) | 5 lines
Issue 2370: Add fixer for the removal of operator.isCallable() and
operator.sequenceIncludes().
Patch contributed by Jeff Balogh (and updated by me).
........
r73861 | benjamin.peterson | 2009-07-05 09:15:53 -0500 (Sun, 05 Jul 2009) | 1 line
cleanup and use unicode where appropiate
........
r73957 | benjamin.peterson | 2009-07-11 15:49:56 -0500 (Sat, 11 Jul 2009) | 1 line
fix calls to str() with unicode()
........
r73958 | benjamin.peterson | 2009-07-11 15:51:51 -0500 (Sat, 11 Jul 2009) | 1 line
more str() -> unicode()
........
r73959 | benjamin.peterson | 2009-07-11 16:40:08 -0500 (Sat, 11 Jul 2009) | 1 line
add tests for refactor_dir()
........
r73960 | benjamin.peterson | 2009-07-11 16:44:32 -0500 (Sat, 11 Jul 2009) | 1 line
don't parse files just because they end with 'py' (no dot)
........
r73964 | benjamin.peterson | 2009-07-11 17:30:15 -0500 (Sat, 11 Jul 2009) | 1 line
simplify
........
r73965 | benjamin.peterson | 2009-07-11 17:31:30 -0500 (Sat, 11 Jul 2009) | 1 line
remove usage of get_prefix()
........
r73966 | benjamin.peterson | 2009-07-11 17:33:35 -0500 (Sat, 11 Jul 2009) | 1 line
revert unintended change in 73965
........
r73967 | benjamin.peterson | 2009-07-11 17:34:44 -0500 (Sat, 11 Jul 2009) | 1 line
avoid expensive checks and assume the node did change
........
r73968 | benjamin.peterson | 2009-07-11 20:46:46 -0500 (Sat, 11 Jul 2009) | 1 line
use a regular dict for the heads to avoid adding lists in the loop
........
r73969 | benjamin.peterson | 2009-07-11 20:50:43 -0500 (Sat, 11 Jul 2009) | 1 line
prefix headnode functions with '_'
........
r73972 | benjamin.peterson | 2009-07-11 21:25:45 -0500 (Sat, 11 Jul 2009) | 1 line
try to make the head node dict as sparse as possible
........
r73973 | benjamin.peterson | 2009-07-11 21:59:49 -0500 (Sat, 11 Jul 2009) | 1 line
a better idea; add an option to *not* print diffs
........
r73974 | benjamin.peterson | 2009-07-11 22:00:29 -0500 (Sat, 11 Jul 2009) | 1 line
add space
........
r73977 | benjamin.peterson | 2009-07-12 10:16:07 -0500 (Sun, 12 Jul 2009) | 1 line
update get_headnode_dict tests for recent changes
........
r73981 | benjamin.peterson | 2009-07-12 12:06:39 -0500 (Sun, 12 Jul 2009) | 4 lines
detect when "from __future__ import print_function" is given
Deprecate the 'print_function' option and the -p flag
........
r73984 | benjamin.peterson | 2009-07-12 16:16:37 -0500 (Sun, 12 Jul 2009) | 1 line
add tests for Call; thanks Joe Amenta
........
r74065 | benjamin.peterson | 2009-07-17 12:52:49 -0500 (Fri, 17 Jul 2009) | 1 line
pathname2url and url2pathname are in urllib.request not urllib.parse #6496
........
r74113 | benjamin.peterson | 2009-07-20 08:56:57 -0500 (Mon, 20 Jul 2009) | 1 line
fix deprecation warnings in tests
........
2009-07-20 15:33:09 +00:00
Kristján Valur Jónsson
c0379437fc
http://bugs.python.org/issue6499
...
gzip.GzipFile may not exist as a parent class
2009-07-19 22:35:44 +00:00
Kristján Valur Jónsson
6d755900f6
http://bugs.python.org/issue6499
...
zlib/gzip may not be present for all builds. Make xmlrpclib gracefully not supporg gzip encoding in this case
2009-07-19 22:14:00 +00:00
Benjamin Peterson
d7b0eebcae
split unittest.py into a package
2009-07-19 20:18:21 +00:00
Senthil Kumaran
5fee460bfa
Fix for issue5102, timeout value propages between redirects, proxy, digest and
...
auth handlers. Fixed tests to reflect the same.
2009-07-19 02:43:43 +00:00
Mark Dickinson
88a0a2e47f
Issue #6431 : Fix Fraction comparisons with unknown types, and with
...
float infinities and nans. Backport of r74078 from py3k.
2009-07-18 15:18:18 +00:00
Hirokazu Yamamoto
e78e5d2e51
Issue #6415 : Fixed warnings.warn sagfault on bad formatted string.
2009-07-17 06:20:46 +00:00
Georg Brandl
3e8b869c9c
Revert r74028.
2009-07-16 21:47:51 +00:00
Georg Brandl
3601a38029
#6482 : simplify "except: raise" to "finally:".
2009-07-16 19:24:48 +00:00
Tarek Ziadé
a99dedfce2
#6466 refactored distutils duplicate get_versions() functions (used to get gcc/ld/dllwrap versions)
2009-07-16 15:35:45 +00:00
Jesse Noller
7530e47948
Issue 6433: multiprocessing.pool.map hangs on empty list
2009-07-16 14:23:04 +00:00
Georg Brandl
d77faaf48f
#5910 : fix kqueue for calls with more than one event.
2009-07-16 07:18:07 +00:00
Amaury Forgeot d'Arc
b9ee881f8b
#6076 Add a title to the IDLE Preferences window.
2009-07-15 21:29:27 +00:00
Ezio Melotti
d5a23e322f
methods' names pep8ification
2009-07-15 17:07:04 +00:00
Michael Foord
91dcd93beb
Move TestRunner initialisation into unittest.TestProgram.runTests. Fixes issue 6418.
2009-07-14 17:58:12 +00:00
Marc-André Lemburg
cecaa65f65
Use a different VER command output parser to address the localization
...
issues mentioned in #3410 .
Prepare for Windows 7 (still commented out).
2009-07-13 21:28:33 +00:00
Marc-André Lemburg
19e5b3f9d1
Use a new global DEV_NULL instead of hard-coding /dev/null into the system
...
command helper functions.
See #6479 for some motivation.
2009-07-13 20:23:49 +00:00
Amaury Forgeot d'Arc
70dda76cde
#1616979 : Add the cp720 (Arabic DOS) encoding.
...
Since there is no official mapping file from unicode.org,
the codec file is generated on Windows with the new genwincodec.py script.
2009-07-13 20:01:11 +00:00
Vinay Sajip
cbb24b35a0
Issue #6314 : logging: Extra checks on the "level" argument in more places.
2009-07-13 11:21:05 +00:00
Kristján Valur Jónsson
0369ba2a4a
http://bugs.python.org/issue6267
...
Add more tests for the xlmrpc.ServerProxy
2009-07-12 22:42:08 +00:00
Hirokazu Yamamoto
6633a6606b
Fixed distutils test.
2009-07-12 02:04:47 +00:00
Benjamin Peterson
9bd39c119e
put downloaded test support files in Lib/test/data instead of the cwd
2009-07-11 22:15:13 +00:00
Tarek Ziadé
51f32c00e8
reverted changes for #6459 (doesn't apply on 2.x)
2009-07-11 17:21:00 +00:00
Amaury Forgeot d'Arc
74b8d333b7
#2622 Import errors in email.message, from a py2app standalone application.
...
Patch by Mads Kiilerich, Reviewed by Barry Warsaw.
2009-07-11 14:33:51 +00:00
Tarek Ziadé
23a3775cc8
fixed #6459 : distutils.command.build_ext.get_export_symbols now uses 'PyInit'
2009-07-11 10:55:27 +00:00
Tarek Ziadé
51c045d6b4
cleaned up distutils.build_ext module
2009-07-11 10:48:31 +00:00
Amaury Forgeot d'Arc
9175742ef0
Add basic tests for the return value of os.popen().close().
...
According to #6358 , python 3.0 has a different implementation that behaves differently.
2009-07-11 09:09:59 +00:00
Kristján Valur Jónsson
ef6007c1ae
http://bugs.python.org/issue6460
...
Need to be careful with thread switching when testing the xmlrpc server. The server thread may not have updated stats when the client thread tests them.
2009-07-11 08:44:43 +00:00
Ezio Melotti
6cbfc12ccd
more cleanups and if zlib -> skipUnless(zlib)
2009-07-10 20:25:56 +00:00
Amaury Forgeot d'Arc
8318afa0b8
#6447 : typo in subprocess docstring
2009-07-10 16:47:42 +00:00
Tarek Ziadé
1c6ebc22bc
cleaned up distutils.command.build
2009-07-10 10:00:21 +00:00
Tarek Ziadé
3f7cba1b65
Added test coverage for distutils.command.build
2009-07-10 09:57:15 +00:00
Tarek Ziadé
8c40001175
Fixed #6455 (the test shall use pyd files under win32, rather than so files)
2009-07-10 09:10:33 +00:00
Amaury Forgeot d'Arc
ce32eb7406
#6416 : Fix compilation of the select module on Windows, as well as test_subprocess:
...
PIPE_BUF is not defined on Windows, and probably has no meaning there.
Anyway the subprocess module uses another way to perform non-blocking reads (with a thread)
2009-07-09 22:37:22 +00:00
R. David Murray
b0c828ae4a
Try to fix Solaris buildbot rmtree failure in test_getcwd_long_pathnames
...
cleanup. If this fix works, it means that Solaris is unique among
our platforms in what happens when shutil.rmtree is called on the
current working directory (ie: it doesn't work on Solaris, but
it does everywhere else).
2009-07-09 18:41:03 +00:00
R. David Murray
6fcf7cae5c
Temporarily ignore rmtree errors in test_getcwd_long_pathnames to see
...
if the test gives useful failure info on Solaris buildbot.
2009-07-09 16:17:30 +00:00
R. David Murray
573399a2f6
Curdir needs to be in the path for the test to work on all buildbots.
...
(I copied this from another import test, but currently this will fail if
TESTFN ends up in /tmp...see issue 2609).
2009-07-09 15:35:33 +00:00
R. David Murray
fbf2cc4d74
Specify umask in execute bit test to get consistent results
...
and make sure we test resetting all three execute bits.
2009-07-09 13:55:44 +00:00
Tarek Ziadé
00490f2754
PendingDeprecationWarning -> DeprecationWarning in build_ext
2009-07-09 07:42:42 +00:00
R. David Murray
00e1f63c6e
Make test work with -O.
2009-07-09 02:06:17 +00:00
R. David Murray
8a624a9eb0
Conditionalize test cleanup code to eliminate traceback, which will
...
hopefully reveal the real problem.
2009-07-09 01:43:41 +00:00
Tarek Ziadé
42b145d0e2
Sets the compiler attribute to keep the old behavior for third-party packages.
2009-07-08 22:40:51 +00:00
Mark Dickinson
5fd3af24a2
Issue #1523 : Remove deprecated overflow masking in struct module, and
...
make sure that out-of-range values consistently raise struct.error.
2009-07-07 15:08:28 +00:00
Mark Dickinson
bb3895cfc6
Expand test coverage for struct.pack with native integer packing;
...
reorganize the test_struct module to remove duplicated code and tests.
2009-07-07 14:15:45 +00:00
Mark Dickinson
ca6b5f36f4
Add skipping to struct test that only applies when overflow masking is in effect
2009-07-07 11:08:23 +00:00
Kristján Valur Jónsson
c71fae5ad7
http://bugs.python.org/issue6382
...
added the shutdown_request() which can perform shutdown before calling close. This is needed for the ForkingMixIn because different close semantics are required for child and parent process. shutdown_request(), for TCP servers, calls socket.shutdown() and then calls close_request(). Therefore, this is not an backwards incompatible change, since subclasses that continue to override close_request() continue to work.
2009-07-07 09:01:34 +00:00
R. David Murray
23a736a4f0
Issue 6070: when creating a compiled file, after copying the mode bits, on
...
posix zap the execute bit in case it was set on the .py file, since the
compiled files are not directly executable on posix. Patch by Marco N.
2009-07-07 01:06:13 +00:00
Tarek Ziadé
e670e5ad5b
Fixed #6377 : distutils compiler switch ignored (and added a deprecation warning if compiler is not used as supposed = a string option)
2009-07-06 12:50:46 +00:00
Kristján Valur Jónsson
f5b8ea9128
http://bugs.python.org/issue6382
...
close_request() (which can send a socket.shutdown()) must be called by the child process in a forking server. The parent must merely close the socket handle.
2009-07-05 20:56:57 +00:00
Mark Dickinson
463dc4bf26
Issues #1530559 , #1741130 : Fix various inconsistencies in struct.pack
...
integer packing, and reenable some previously broken tests.
2009-07-05 10:01:24 +00:00
Alexandre Vassalotti
5b1abb7bb0
Backport test cases added in r73852.
2009-07-05 06:33:41 +00:00
Alexandre Vassalotti
16a0247393
Fix bad variable name in r73846.
2009-07-05 04:25:46 +00:00
Alexandre Vassalotti
0fe799151f
Issue 2370: Add Python 3 warnings for the removal of operator.isCallable and
...
operator.sequenceIncludes.
Patch contributed by Jeff Balogh (and updated slightly by me).
2009-07-05 04:22:40 +00:00
Ezio Melotti
e7a0cc2aa8
if zlib -> skipUnless(zlib) and minor cleanups
2009-07-04 14:58:27 +00:00
Gregory P. Smith
1844b0d748
Merge r73838 from py3k branch. Use the nondeprecated unittest method
...
names.
2009-07-04 08:42:10 +00:00
Tarek Ziadé
cd947e0c6a
using print statements when used for user interaction
2009-07-04 02:59:19 +00:00
Tarek Ziadé
63f1738d4b
Fixed #6413 : fixed log level in distutils.dist.announce
2009-07-04 02:02:41 +00:00
Gregory P. Smith
dd7ca24eb5
Use select.poll() in subprocess, when available, rather than select() so that
...
it does not fail when file descriptors are large. Fixes issue3392.
Patch largely contributed by Frank Chu (fpmc) with some improvements by me.
See http://bugs.python.org/issue3392 .
Candidate for backporting to release26-maint as it is a bug fix and changes no
public API.
2009-07-04 01:49:29 +00:00
Kristján Valur Jónsson
e5445da631
http://bugs.python.org/issue6267
...
Incorrect exception handling for xmlrpc client retry
2009-07-03 23:29:50 +00:00
Kristján Valur Jónsson
f83648ef48
http://bugs.python.org/issue6267
...
Incorrect exception handling for xmlrp client retry
2009-07-03 23:26:02 +00:00
Kristján Valur Jónsson
b5faac73a4
http://bugs.python.org/issue6381
...
some platforms may raise ENOTCONN if the stack has disconnected the socket on behalf of the peer.
2009-07-03 23:07:07 +00:00
Tarek Ziadé
9ad7bbc637
cleaned distutils.file_util
2009-07-03 19:14:49 +00:00
Tarek Ziadé
eea9d0d846
basic tests to raise distutils.file_util coverage
2009-07-03 19:01:12 +00:00
Tarek Ziadé
fe97ebbf62
cleaned up distutils.command.build_py
2009-07-03 09:01:07 +00:00
Tarek Ziadé
65ec61ed06
Fixed #6403 : package path usage for build_ext
2009-07-03 08:22:56 +00:00
Benjamin Peterson
50a2252851
condense with assertRaises
2009-07-02 22:56:16 +00:00
Benjamin Peterson
d3243d8db8
test that compile() accepts the future flag
2009-07-02 21:38:36 +00:00
Benjamin Peterson
753d16234f
when print() gets unicode arguments, sep and end should be unicode by default #4618
2009-07-02 18:16:45 +00:00
Benjamin Peterson
1bf4765369
only order comparisons are removed in py3k #6119
2009-07-02 17:06:17 +00:00
Benjamin Peterson
0c6de43dd9
remove this test; a module level warning is enough
2009-07-02 16:51:56 +00:00
Tarek Ziadé
3757fbba25
pep8-fied and cleaned up distutils.util
2009-07-02 14:20:47 +00:00
Tarek Ziadé
85bb62872d
cleaned up the bdist_dumb module
2009-07-02 12:51:56 +00:00
Tarek Ziadé
d0ca455368
raising bdist_dumb test coverage
2009-07-02 12:47:54 +00:00
Benjamin Peterson
4f24767938
proxy the __exit__ call
2009-07-01 13:34:35 +00:00
Benjamin Peterson
7e2801d1b5
Merged revisions 73379,73388,73507,73722 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r73379 | benjamin.peterson | 2009-06-11 18:06:21 -0500 (Thu, 11 Jun 2009) | 1 line
use a real conditional expresion
........
r73388 | benjamin.peterson | 2009-06-12 09:44:29 -0500 (Fri, 12 Jun 2009) | 1 line
fix typo in last fix
........
r73507 | benjamin.peterson | 2009-06-22 13:32:04 -0500 (Mon, 22 Jun 2009) | 1 line
remove svn:executable property
........
r73722 | benjamin.peterson | 2009-06-30 19:44:30 -0500 (Tue, 30 Jun 2009) | 1 line
replace fail* with assert*
........
2009-07-01 00:49:09 +00:00
Benjamin Peterson
4d3f18f2ed
fix a few cases where automated fail -> assert translation messed up
...
Thanks Joe Amenta
2009-07-01 00:36:41 +00:00
Benjamin Peterson
6b0032f2c3
use assert* methods in test_unittest
2009-06-30 23:30:12 +00:00
Benjamin Peterson
5c8da86f3a
convert usage of fail* to assert*
2009-06-30 22:57:08 +00:00
Benjamin Peterson
31f42ab254
provide a dummy __exit__ on windows
2009-06-30 22:14:33 +00:00
Jesse Noller
1b90efbdc5
Resolves issues 5155, 5313, 5331 - bad file descriptor error with processes in processes
2009-06-30 17:11:52 +00:00
Raymond Hettinger
5dfc7f9fc8
Issue 6370: Performance issue with collections.Counter().
2009-06-29 19:10:29 +00:00
Tarek Ziadé
3fbcc60eb8
Fixed 6365: wrong inplace location for build_ext if the extension had dots
2009-06-29 16:13:39 +00:00
Antoine Pitrou
79c3bd80ed
Backport fix for buglet from py3k
2009-06-29 14:14:56 +00:00
Kristján Valur Jónsson
e007860b8b
http://bugs.python.org/issue6267
...
Cumulative patch to http and xmlrpc
2009-06-28 21:04:17 +00:00
Benjamin Peterson
552e7a7e2f
return locals and cells in get_locals() not bound globals, though
2009-06-28 19:27:55 +00:00
Georg Brandl
a4c622972a
Remove stray pychecker directive.
2009-06-28 12:10:18 +00:00
Gregory P. Smith
2662733bce
Fixes the last problem mentioned in issue1202.
2009-06-26 07:50:21 +00:00
Amaury Forgeot d'Arc
595f7a5bf9
#2016 Fix a crash in function call when the **kwargs dictionary is mutated
...
during the function call setup.
This even gives a slight speedup, probably because tuple allocation
is faster than PyMem_NEW.
2009-06-25 22:29:29 +00:00
Kristján Valur Jónsson
f1d11efb72
http://bugs.python.org/issue6192
...
Move the newly introduced disable_nagle_algorithm flag into the StreamRequestHandler, where it is more appropriate.
2009-06-24 09:17:04 +00:00
Amaury Forgeot d'Arc
14fc673d4f
Remove the ipaddr module per discussion on python-dev
2009-06-23 21:09:09 +00:00
Raymond Hettinger
62641e9534
Issue 6329: Fix iteration for memoryviews.
2009-06-23 20:59:43 +00:00
R. David Murray
ef087da9e7
Fix issue 5230 by having pydoc's safeimport check to see if the import
...
error was thrown from itself in order to decide if the module can't be
found. Thanks to Lucas Prado Melo for collaborating on the fix and tests.
2009-06-23 18:02:46 +00:00
Nick Coghlan
3a1dbb05a1
Remove markup from docstring
2009-06-23 10:51:02 +00:00
Nick Coghlan
0d8b4e33e7
Issue 6288: Update contextlib.nested() docstring to reflect new documentation
2009-06-23 10:19:30 +00:00
Amaury Forgeot d'Arc
e71bd81a89
#4490 Fix sample code run by "python -m xml.sax.xmlreader"
2009-06-22 19:33:48 +00:00
Steven Bethard
35fad2fc48
Fix memory bug in bdist_msi. (Commit okayed in issue6319.)
2009-06-21 21:03:41 +00:00
Vinay Sajip
603fb6d667
Issue #6314 : logging.basicConfig() performs extra checks on the "level" argument.
2009-06-21 17:37:27 +00:00
Guilherme Polo
7f146ab0ca
Issue #5450 : Moved tests involving loading tk from Lib/test/test_tcl to
...
Lib/lib-tk/test/test_tkinter/test_loadtk in order to follow the behaviour of
test_ttkguionly.
2009-06-21 17:22:50 +00:00
Tarek Ziadé
439bf93f8c
Fixed #6164 AIX specific linker argument in Distutils unixcompiler
2009-06-20 13:57:20 +00:00
Benjamin Peterson
dae5db2805
use closures
2009-06-19 22:21:12 +00:00
Benjamin Peterson
5fa09e3eb5
show that this one isn't used
2009-06-19 22:16:28 +00:00
Benjamin Peterson
9c5e4115ab
add missing assertion #6313
2009-06-19 22:09:17 +00:00
Benjamin Peterson
f1cccaa6b2
remove duplicate test
2009-06-19 22:07:47 +00:00
Facundo Batista
8c826b77e0
Issue #6274 . Fixed a potential FD leak in subprocess.py.
2009-06-19 18:02:28 +00:00
Amaury Forgeot d'Arc
5fe420e34c
#6189 : The subprocess.py module should be kept compatible with python 2.2
...
(On windows, you still have to change one line to use pywin32
instead of the _subprocess helper module)
2009-06-18 22:32:50 +00:00
Georg Brandl
c29863e3a6
#6276 : Remove usage of nested() in favor of new with statement with multiple managers.
2009-06-18 22:24:26 +00:00
Hirokazu Yamamoto
cdcd4bff12
Issue #6215 : Fixed to use self.open() instead of open() or io.open().
2009-06-17 07:05:33 +00:00
Mark Dickinson
5d730177a9
Acknowledge the role of the MPFR library in creating cmath_testcases.txt
2009-06-16 20:31:12 +00:00
Tarek Ziadé
c1df95e12f
starting distutils.ccompiler test coverage and cleanup
2009-06-16 08:31:01 +00:00
Benjamin Peterson
08a0bbc846
don't mask encoding errors when decoding a string #6289
2009-06-16 00:29:31 +00:00
Tarek Ziadé
a1cc040828
Issue #6286 : distutils upload command now uses urllib2
2009-06-15 23:30:13 +00:00
Tarek Ziadé
d7c5cee2d5
code cleanup
2009-06-15 23:04:29 +00:00
Amaury Forgeot d'Arc
f81ff989d6
#6227 : Because of a wrong indentation, the test was not testing what it should.
...
Ensure that the snippet in doctest_aliases actually contains aliases.
2009-06-14 21:20:40 +00:00
Benjamin Peterson
a72be3b325
when no module is given in a 'from' relative import, make ImportFrom.module NULL
2009-06-13 20:23:33 +00:00
Benjamin Peterson
52c4bec76b
give a better error message when deleting ()
2009-06-13 17:08:53 +00:00
Benjamin Peterson
fb23463139
special case release candidates
2009-06-13 15:42:23 +00:00
Benjamin Peterson
d1f5a59edb
allow importing from a module named None if it has an 'as' clause
2009-06-13 13:06:21 +00:00
Benjamin Peterson
565e1b6bb7
prevent import statements from assigning to None
2009-06-13 03:46:30 +00:00
Benjamin Peterson
4afbba3d34
keep the slice.step field as NULL if no step expression is given
2009-06-13 01:40:00 +00:00
Alexandre Vassalotti
cb73bdac95
Revert r73401 per Raymond Hettinger's request.
...
The rational is the change might cause imcompatiblity problems with
PyYAML. In addition, Raymond wants to kept the different versions of
collections synchronized across Python versions.
2009-06-12 23:03:35 +00:00
Alexandre Vassalotti
450ae573bc
Make pickling of OrderedDict instances more efficient.
2009-06-12 21:52:14 +00:00
Antoine Pitrou
c5ae86b9d3
Re-enable testing of builtin open() in test_bufio in test_largefile
2009-06-12 20:54:21 +00:00
Antoine Pitrou
47a5f48006
Try to restore the old test_file and test_univnewlines as new, different files
...
(with the right revisions this time, hopefully)
2009-06-12 20:41:52 +00:00
Antoine Pitrou
c5d2b4156c
Restore the old test_file.py (for the builtin file object) as a new file named test_file2k.py
2009-06-12 20:36:25 +00:00
Antoine Pitrou
1969059327
Issue #6215 : backport the 3.1 io lib
2009-06-12 20:14:08 +00:00
Martin v. Löwis
2dcd7a0d52
Support AMD64 in msilib. Set Win64 on reglocator.
...
Fixes #6258 .
2009-06-12 17:28:31 +00:00
Raymond Hettinger
2c0cdca564
Issue 6261: Clarify behavior of random.uniform().
2009-06-11 23:14:53 +00:00
Benjamin Peterson
6118040b7a
Merged revisions 72523,72950-72951,72994,73003,73033,73036-73040,73091-73093,73096,73179-73181,73192,73231,73244,73255-73256,73365 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r72523 | benjamin.peterson | 2009-05-09 14:42:26 -0500 (Sat, 09 May 2009) | 1 line
remove parenthesis
........
r72950 | benjamin.peterson | 2009-05-26 18:19:45 -0500 (Tue, 26 May 2009) | 1 line
remove unused imports
........
r72951 | benjamin.peterson | 2009-05-26 18:27:00 -0500 (Tue, 26 May 2009) | 1 line
this is no longer executable
........
r72994 | benjamin.peterson | 2009-05-28 15:32:54 -0500 (Thu, 28 May 2009) | 1 line
fix test_all_fixers on Windows #6134
........
r73003 | benjamin.peterson | 2009-05-28 21:57:28 -0500 (Thu, 28 May 2009) | 4 lines
make 2to3 test utilities easier to use with other applications (3to2)
Patch by Joe Amenta
........
r73033 | benjamin.peterson | 2009-05-29 16:58:32 -0500 (Fri, 29 May 2009) | 1 line
update grammar for multi with statement
........
r73036 | benjamin.peterson | 2009-05-29 17:33:20 -0500 (Fri, 29 May 2009) | 1 line
simplify fix_unicode
........
r73037 | benjamin.peterson | 2009-05-29 17:53:03 -0500 (Fri, 29 May 2009) | 1 line
add custom error for pattern syntax errors
........
r73038 | benjamin.peterson | 2009-05-29 17:55:00 -0500 (Fri, 29 May 2009) | 1 line
complain if details are attached to a token
........
r73039 | benjamin.peterson | 2009-05-29 18:00:28 -0500 (Fri, 29 May 2009) | 1 line
add a test for whitespace
........
r73040 | benjamin.peterson | 2009-05-29 18:01:17 -0500 (Fri, 29 May 2009) | 1 line
a fix for emacs highlighting
........
r73091 | benjamin.peterson | 2009-05-31 20:55:25 -0500 (Sun, 31 May 2009) | 1 line
deprecate set_prefix() and get_prefix() in favor of a prefix property
........
r73092 | benjamin.peterson | 2009-05-31 21:00:51 -0500 (Sun, 31 May 2009) | 1 line
change hideous java naming scheme
........
r73093 | benjamin.peterson | 2009-05-31 21:01:39 -0500 (Sun, 31 May 2009) | 1 line
remove dated comment
........
r73096 | benjamin.peterson | 2009-05-31 21:40:53 -0500 (Sun, 31 May 2009) | 1 line
group tests
........
r73179 | benjamin.peterson | 2009-06-03 13:09:53 -0500 (Wed, 03 Jun 2009) | 1 line
handle the case where there's multiple trailers #6185
........
r73180 | benjamin.peterson | 2009-06-03 13:18:05 -0500 (Wed, 03 Jun 2009) | 1 line
scrap __main__ section
........
r73181 | benjamin.peterson | 2009-06-03 13:24:48 -0500 (Wed, 03 Jun 2009) | 1 line
remove shebang lines and __main__ sections
........
r73192 | benjamin.peterson | 2009-06-03 19:16:30 -0500 (Wed, 03 Jun 2009) | 4 lines
actually test something here
Thanks to Joe Amenta for noticing.y
........
r73231 | benjamin.peterson | 2009-06-04 13:38:50 -0500 (Thu, 04 Jun 2009) | 1 line
remove unused variable
........
r73244 | benjamin.peterson | 2009-06-05 08:39:25 -0500 (Fri, 05 Jun 2009) | 1 line
allow fixers to give different options in setUp
........
r73255 | benjamin.peterson | 2009-06-06 11:23:46 -0500 (Sat, 06 Jun 2009) | 1 line
fix the except fixer on one line suites #6222
........
r73256 | benjamin.peterson | 2009-06-06 11:27:40 -0500 (Sat, 06 Jun 2009) | 1 line
test one-line else and finally clauses
........
r73365 | benjamin.peterson | 2009-06-11 17:01:32 -0500 (Thu, 11 Jun 2009) | 1 line
normalize whitespace
........
2009-06-11 22:06:46 +00:00
Benjamin Peterson
3bca523a8c
use multi-with syntax
2009-06-11 17:51:17 +00:00
Tarek Ziadé
ff1081874a
pep8-fied cygwinccompiler module
2009-06-11 09:55:09 +00:00
Vinay Sajip
91290b5f53
Issue #5262 : Improved fix.
2009-06-11 09:53:35 +00:00
Vinay Sajip
83da034c9a
Issue #5262 : Fixed bug in next roll over time computation in TimedRotatingFileHandler.
2009-06-11 09:23:41 +00:00
Tarek Ziadé
c7498f5aab
#6263 fixed syntax error in distutils.cygwinccompiler
2009-06-11 09:13:36 +00:00
Tarek Ziadé
2d36afd15e
removed the last string.split() call
2009-06-11 08:43:26 +00:00
Tarek Ziadé
25d2bae1c9
Fixed #5201 : now distutils.sysconfig.parse_makefile() understands '53264' in Makefiles
2009-06-11 08:12:20 +00:00
Tarek Ziadé
7ca57aa9fa
Distutils: started code cleanup and test coverage for cygwinccompiler
2009-06-10 18:49:50 +00:00
Raymond Hettinger
1917ad587f
Issue 6256: Fix stacklevel in warning message.
2009-06-10 16:15:02 +00:00
Amaury Forgeot d'Arc
5217c0848a
Missing import in test_curses, uncovered by some buildbots.
...
(There are still a few test files that don't use the standard layout)
2009-06-09 23:37:11 +00:00
Amaury Forgeot d'Arc
03dcc73c11
Avoid invoking the parser/compiler just to test the presence of a function.
2009-06-09 22:53:16 +00:00
Benjamin Peterson
6a098d20e4
update symbol.py from with statement changes
2009-06-09 21:13:43 +00:00
Eric Smith
9eeeee9d71
Restored a test that was erroneously removed. See issue 6198.
2009-06-09 12:38:08 +00:00
Benjamin Peterson
a5a5728cf0
remove error checks already done in set_context()
2009-06-08 23:44:13 +00:00
Georg Brandl
0c6d166479
Typo fix.
2009-06-08 18:41:36 +00:00
Benjamin Peterson
64092a56ec
backport r73273
2009-06-07 23:12:44 +00:00
Kristján Valur Jónsson
afefcfd4bf
http://bugs.python.org/issue6192
...
Add a feature to disable the Nagle algorithm on sockets in TCPServer
2009-06-07 16:43:23 +00:00
Benjamin Peterson
e021c9cb27
backport r73268
2009-06-07 16:24:48 +00:00
Georg Brandl
18187e2167
#6224 : s/JPython/Jython/, and remove one link to a module nine years old.
2009-06-06 18:21:58 +00:00
Georg Brandl
9be5998760
#6206 : fix test__locale.
2009-06-06 05:54:34 +00:00
Benjamin Peterson
a663a373b2
only test for named pipe when os.stat doesn't raise #6209
2009-06-05 19:09:28 +00:00
Michael Foord
d53d085ada
Fix unittest discovery tests for Windows. Issue 6199
2009-06-05 14:14:34 +00:00
Tarek Ziadé
3b5d5fb123
reverting r72823 : Python trunk has to use latin-1 encoding
2009-06-05 13:37:29 +00:00
Eric Smith
7c58b09b64
Removed tests so that test_float pass on Windows. See issue 6198.
2009-06-05 12:33:26 +00:00
Hirokazu Yamamoto
fbf63a7dfa
Fix test__locale on windows (Backport of r72365)
2009-06-05 05:15:58 +00:00
Georg Brandl
4da2fa5517
Add test for #3684 .
2009-06-04 18:59:58 +00:00
Georg Brandl
46121e79ce
Better name for "Ctor".
2009-06-04 10:10:41 +00:00
Georg Brandl
eb56aa169a
#3584 : ignore trailing newlines when placing the caret for a SyntaxError location.
2009-06-04 09:15:12 +00:00
Georg Brandl
e6632b47bb
#5767 : remove sgmlop support from xmlrpclib; the sgmlop parser does not do much validation and is no longer much faster than e.g. the cElementTree XMLParser.
2009-06-04 08:58:32 +00:00
Tarek Ziadé
e616c53aec
improved test coverage for distutils.command.install and cleaned it up
2009-06-04 07:31:52 +00:00
Georg Brandl
19e79f79ce
Avoid PendingDeprecationWarnings emitted by deprecated unittest methods.
2009-06-03 23:23:45 +00:00
Josiah Carlson
96b79c851a
Fix for line wrap ugly.
2009-06-03 19:51:52 +00:00
Josiah Carlson
a810bc736c
This fixes bug 5798 on OS X.
...
This should also fix disconnect behavior cross-platform.
2009-06-03 19:46:21 +00:00
Tarek Ziadé
8df921b46b
assertion message was dropped
2009-06-03 11:20:44 +00:00
Tarek Ziadé
fe327b97d2
more cleanup and test coverage for distutils.extension
2009-06-03 11:12:08 +00:00
Tarek Ziadé
c6709978ac
added some tests for distutils.extension + code cleanup
2009-06-03 10:26:26 +00:00
Michael Foord
dad7b7b1cb
Restore default testRunner argument in unittest.main to None. Issue 6177
2009-06-02 18:08:27 +00:00
Tarek Ziadé
abb4ec6dc4
improved distutils.spawn test coverage + cleaned it up
2009-06-02 15:58:43 +00:00
Kristján Valur Jónsson
36c3928fdc
http://bugs.python.org/issue6117
...
Fix O(n**2) performance problem in socket._fileobject
2009-06-02 13:14:08 +00:00
Mark Dickinson
d57b5543e4
Typo in socket.py. Thanks Pablo Torres Navarrete.
2009-06-02 07:39:26 +00:00
Gregory P. Smith
61e7fbf2c1
Fixes issue6169: it was possible for two ipaddr network addresses to compare
...
as both < and > than eachother.
2009-06-02 05:25:34 +00:00
Tarek Ziadé
c01cbc42aa
improved distutils.dist test coverage, pep-8 compliancy
2009-06-01 22:22:13 +00:00
Amaury Forgeot d'Arc
b02ceda3a5
#4547 : When debugging a very large function, it was not always
...
possible to update the lineno attribute of the current frame.
2009-06-01 20:53:18 +00:00
Gregory P. Smith
09daad9825
Sync up __version__ number with the version of the ipaddr-py project this
...
library came from that it matches.
Remove the former apache license text now that its been contributed to PSF to
avoid confusion.
2009-06-01 17:40:41 +00:00
Guilherme Polo
1c6787f9de
Improved PanedWindow.add's docstring. 'subcomand' is a Tcl term, and the possible options and values are the same accepted by paneconfigure (not configure).
2009-05-31 21:31:21 +00:00
R. David Murray
8fcaebbef4
Issue 3848: document the fact that epoll register raises an IOError if
...
an fd is registered twice, and add some additional epoll tests. Patch
by Christian Heimes.
2009-05-31 19:15:57 +00:00
Benjamin Peterson
eb88cb8cd4
__enter__ and __exit__ must be on the class
2009-05-31 15:00:27 +00:00
Benjamin Peterson
382ccdfd5b
remove function import
2009-05-31 14:43:00 +00:00
Antoine Pitrou
4698d9928e
Issue #6152 : New option '-j'/'--multiprocess' for regrtest allows running
...
regression tests in parallel, shortening the total runtime.
2009-05-31 14:20:14 +00:00
Antoine Pitrou
4528bcde77
The test for #5330 wasn't correct.
2009-05-30 21:39:25 +00:00
Antoine Pitrou
46dbe27f7e
Issue #5330 : C functions called with keyword arguments were not reported by
...
the various profiling modules (profile, cProfile). Patch by Hagen Fürstenau.
2009-05-30 21:27:00 +00:00
Benjamin Peterson
465089271f
add with statements
2009-05-29 21:48:19 +00:00
Michael Foord
b4a81c838a
Add test discovery to unittest. Issue 6001.
2009-05-29 20:33:46 +00:00
R. David Murray
6b98544b32
Refactor test parameterization to resolve update timing problem.
2009-05-29 17:31:05 +00:00
Tarek Ziadé
3e3eace7d7
Fixed #6131 : test_modulefinder leaked when run after test_distutils
2009-05-29 08:08:07 +00:00
Raymond Hettinger
578a228ee2
Issue 5982: Classmethod and staticmethod expose wrapped function with __func__.
2009-05-29 04:58:52 +00:00
Raymond Hettinger
822b87f276
Deprecate contextlib.nested(). The with-statement now provides this functionality directly.
2009-05-29 01:46:48 +00:00
Raymond Hettinger
b4d2d31874
Issue 5150: Add rstrip() option to IDLE's format menu.
2009-05-29 01:36:26 +00:00
R. David Murray
8de212bd4f
Backport smtplib auth tests from r72990.
2009-05-28 18:49:23 +00:00
Tarek Ziadé
460f6c86b4
using 'tar' then 'gzip' in the test, because 'tar -czf' is not supported under some platforms
2009-05-28 13:55:51 +00:00
Tarek Ziadé
9e5d2dc6a6
Fixed #6048 : Distutils uses the tarfile module instead of the tar command now
2009-05-28 12:53:54 +00:00
Philip Jenvey
6a111027f2
explicitly close files
2009-05-28 05:58:44 +00:00
Philip Jenvey
80319a3a53
explicitly close the file, merged from py3k
2009-05-28 03:10:59 +00:00
R. David Murray
d67ea7d4c6
fix issue #6121 by stripping spaces from the argument in the 'help'
...
function.
2009-05-27 20:07:21 +00:00
Benjamin Peterson
39d43b4660
correctly handle descrs with __missing__
2009-05-27 02:43:46 +00:00
Raymond Hettinger
a68cad13ae
Fix field name conflicts for named tuples.
2009-05-27 02:24:45 +00:00
Ronald Oussoren
55d8828f98
Fixes issue 6110
2009-05-26 18:44:48 +00:00
Georg Brandl
4ee8282229
#6112 : list.remove raises ValueError, not RuntimeError.
2009-05-26 07:50:23 +00:00
Collin Winter
57bef68bc0
Issue 5794: fix cPickle's unpickling of recursive tuples.
2009-05-26 04:12:39 +00:00
Georg Brandl
944f684ce6
Allow multiple context managers in one with statement, as proposed
...
in http://codereview.appspot.com/53094 and accepted by Guido.
The construct is transformed into multiple With AST nodes so that
there should be no problems with the semantics.
2009-05-25 21:02:56 +00:00
Michael Foord
04516611e7
Make assertSequenceEqual error messages less cryptic, particularly for nested sequences.
2009-05-25 20:36:56 +00:00
Benjamin Peterson
1880d8b823
add a SETUP_WITH opcode
...
It speeds up the with statement and correctly looks up the special
methods involved.
2009-05-25 13:13:44 +00:00
Benjamin Peterson
87e5006d8c
handle errors from _PyObject_LookupSpecial when __get__ fails
2009-05-25 02:40:21 +00:00
Benjamin Peterson
176a56c69b
make class skipping decorators the same as skipping every test of the class
...
This removes ClassTestSuite and a good bit of hacks.
2009-05-25 00:48:58 +00:00
Martin v. Löwis
0b09c42ffe
Issue #6050 : Don't fail extracting a directory from a zipfile if
...
the directory already exists.
2009-05-24 19:30:52 +00:00
Martin v. Löwis
53b578eba1
Issue #6065 : Do not try to build a version-independent
...
installer if the package has extension modules.
Also add NEWS entry for #5311 .
2009-05-24 19:10:52 +00:00
Antoine Pitrou
d49e375eed
Issue #1309352 : fcntl now converts its third arguments to a C `long` rather
...
than an int, which makes some operations possible under 64-bit Linux (e.g.
DN_MULTISHOT with F_NOTIFY).
2009-05-24 15:40:09 +00:00
Senthil Kumaran
e266f25cf1
Fixed Issue1424152, urllib2 fails with HTTPS over Proxy.
2009-05-24 09:14:50 +00:00
R. David Murray
3724d6c392
Add smtplib test from issue 5259.
2009-05-23 21:48:06 +00:00
Antoine Pitrou
f3bd687b2d
Issue #3877 : skip a test_fileio subtest on all BSDs, not only FreeBSD
2009-05-23 16:32:32 +00:00
Eric Smith
4b94b192ff
Issue 6089: str.format raises SystemError.
2009-05-23 13:56:13 +00:00
R. David Murray
8254d39840
Fix spelling left over from testing.
2009-05-23 02:19:36 +00:00
R. David Murray
812e1c80c4
Don't be so wordy in requires('network') in case other tests
...
are added later, and skip the existing test if SSL is not available.
2009-05-23 02:16:58 +00:00
R. David Murray
ad3058e0b8
Fix Issue #4066 : smtplib.SMTP_SSL._get_socket now correctly returns
...
the socket. Patch by Farhan Ahmad, test by Marcin Bachry.
2009-05-23 00:48:58 +00:00
Tarek Ziadé
aafd6b850e
fixed encoding
2009-05-22 09:42:43 +00:00
Philip Jenvey
739aa36818
don't use subprocess.call with PIPEs as the child can fill the pipe buf and
...
deadlock. add a warning to subprocess docs about this, similar to Popen.wait's.
refs http://bugs.jython.org/issue1351
2009-05-22 05:35:32 +00:00
Michael Foord
a50af06931
Rename TestCase._result to _resultForDoCleanups to avoid potential clashes in TestCase subclasses. Issue 6072.
2009-05-21 22:57:02 +00:00
Mark Dickinson
a4e0efa4b1
Issue #5829 : don't raise OverflowError for complex('1e500'). Backport of r72803.
2009-05-20 18:43:07 +00:00
Jeffrey Yasskin
c8d30fec16
Fix issue #1689458 by teaching frame_setlineno how to jump to the first line of
...
a code object.
2009-05-20 17:57:57 +00:00
Collin Winter
1ef9c837b7
Issue 6066: POP_MARK was not in pickle protocol 0.
2009-05-20 16:49:12 +00:00
Tarek Ziadé
7d7127dd84
fixed the 'package' option of build_ext
2009-05-19 16:17:21 +00:00
Collin Winter
f03c42f0ab
Issue 6032: fix refleaks in test_urllib2_localnet.
2009-05-18 21:35:40 +00:00
Jeffrey Yasskin
61328eef1f
While I was modifying test_trace, it threw an exception when I accidentally
...
made it try to set the line number from the trace callback for a 'call' event.
This patch makes the error message a little more helpful in that case, and
makes it a little less likely that a future editor will make the same mistake
in test_trace.
2009-05-18 21:14:54 +00:00
Raymond Hettinger
fceb5d478f
Issue 6037: MutableSequence.__iadd__ should return self.
2009-05-18 15:51:59 +00:00
Tarek Ziadé
07bbfcc5e2
Fixed #6053 - win32 fixes for distutils tests
2009-05-18 12:21:26 +00:00
Tarek Ziadé
6deb574be3
working with relative paths to avoid tar warnings on absolute paths
2009-05-18 08:20:55 +00:00
Tarek Ziadé
fcc7f039ec
Fixed the library extension when distutils build_ext is used inplace
2009-05-18 08:03:37 +00:00
Tarek Ziadé
6dd6b619a8
fixed the test name
2009-05-17 14:59:05 +00:00
Tarek Ziadé
6f826ed4c2
pep8-fied distutils.archive_util + added minimum test coverage
2009-05-17 12:04:57 +00:00
Tarek Ziadé
513a8b7d99
pep8-fied distutils.dir_util
2009-05-17 11:22:36 +00:00
Tarek Ziadé
294c9d90df
removed sys.platform == 'mac' usage in distutils.dir_util
2009-05-17 11:11:57 +00:00
Tarek Ziadé
016828d119
removed sys.platform == 'mac' support in distutils.dist.parse_command_line and improved test coverage
2009-05-17 10:44:12 +00:00
Tarek Ziadé
8d252e498c
not running this test with MSVC6
2009-05-17 10:07:48 +00:00
Benjamin Peterson
a27dbc68f0
completely ignore old-style stuff for type checking overloading
2009-05-16 22:40:56 +00:00
Benjamin Peterson
fb6fb062e8
properly lookup __instancecheck__ and __subclasscheck__
2009-05-16 21:44:25 +00:00
Benjamin Peterson
757b3c90e6
use skipTest()
2009-05-16 18:44:34 +00:00
Tarek Ziadé
ae6acfc9a1
pep8-fied distutils.dist module
2009-05-16 18:29:40 +00:00
Tarek Ziadé
cb76804b17
#6041 : sdist and register now use the check command. No more duplicate code for metadata checking
2009-05-16 16:37:06 +00:00
Antoine Pitrou
f541378d13
Fix bootstrapping by removing uses of the copy module in distutils
2009-05-15 17:27:30 +00:00
Antoine Pitrou
775fd66d7b
Issue #2116 : Weak references and weak dictionaries now support copy()ing and deepcopy()ing.
2009-05-15 16:54:52 +00:00
Antoine Pitrou
52035a04ab
Issue #1655 : Make imaplib IPv6-capable. Patch by Derek Morr.
2009-05-15 11:50:29 +00:00
Collin Winter
0f489743ef
Issue 6024: make regrtest.py promote refleaks to test failures.
2009-05-14 23:26:30 +00:00
Benjamin Peterson
0db3cd6700
a useful decorator for cleaning up threads
2009-05-14 22:40:34 +00:00
Benjamin Peterson
92d102bf6d
prevent refleaks from threads
2009-05-14 22:37:49 +00:00
Antoine Pitrou
eed30d830b
Issue #1664 : Make nntplib IPv6-capable. Patch by Derek Morr.
...
(Unfortunately, nntplib doesn't have a test suite)
2009-05-14 21:22:08 +00:00
Tarek Ziadé
cbb4f9ef58
#6022 fixed test_get_outputs so it doesn't leaves a test file in the cwd
2009-05-14 20:14:13 +00:00
R. David Murray
878555401e
Fix test failure on Windows, and add skip check if even unicodedata
...
turns out not to be an external module on some other platform.
2009-05-14 16:12:57 +00:00
Tarek Ziadé
8953913cf5
pep8-fied distutils.command.sdist + more tests
2009-05-14 14:56:14 +00:00
Tarek Ziadé
064a768101
more test coverage for distutils sdist command
2009-05-14 12:40:59 +00:00
Tarek Ziadé
d547144f0f
adding void to the c function
2009-05-13 22:16:03 +00:00
Tarek Ziadé
1652410429
added an inifoo in the C file, to avoid a warning by the MSVC9 linker
2009-05-13 21:30:06 +00:00
R. David Murray
996ba02602
Issue #4050 : inspect.findsource/getsource now raise an IOError if the 'source'
...
file is a binary. Patch by Brodie Rao, test by Daniel Diniz.
2009-05-13 17:14:11 +00:00
Benjamin Peterson
e9a2b8a0e3
the compiler attribute is used in setup.py; can't rename
2009-05-12 21:06:05 +00:00
Tarek Ziadé
972480d999
fixed #5977 : distutils build_ext.get_outputs was not using the inplace option
2009-05-12 17:07:14 +00:00
Michael Foord
f596a5125a
Better fix for modules using unittest.main(). Fixes regression caused by commit for issue 5995. Michael Foord
2009-05-12 10:49:13 +00:00
Michael Foord
7df82c9ef8
Fix to restore command line behaviour for test modules using unittest.main(). Regression caused by issue 5995. Michael
2009-05-12 10:46:23 +00:00
Tarek Ziadé
4ba25c25d2
removing the assert statement so the code works when Python is run with -O
2009-05-12 07:01:29 +00:00
Michael Foord
5d31e057c5
Adds a verbosity keyword argument to unittest.main plus a minor fix allowing you to specify test modules / classes
...
from the command line.
Closes issue 5995.
Michael Foord
2009-05-11 17:59:43 +00:00
Mark Dickinson
b1d45856c2
Issue #5981 : Fix some float.fromhex bugs related to inf and nan handling.
2009-05-11 15:33:08 +00:00
Tarek Ziadé
68e27eb834
distutils.test_build_clib added a new line at the end of the file, to avoid a warning with some compilers
2009-05-11 08:45:17 +00:00
Tarek Ziadé
2bb084e643
fixed test_build_ext for win32
2009-05-10 21:27:55 +00:00
Benjamin Peterson
e1577fb20f
use isinstance
2009-05-10 14:16:47 +00:00
Tarek Ziadé
e3f68a1a96
fixed test for all platforms
2009-05-10 12:36:48 +00:00
Tarek Ziadé
450ca11a58
now using EnvironGuard everywhere
2009-05-10 12:17:30 +00:00
Tarek Ziadé
d35f2a33d5
refactored test_sysconfig so it uses test.test_support.EnvironmentVarGuard
2009-05-10 11:59:30 +00:00
Tarek Ziadé
234ab8fc1c
Added tests form install_lib and pep8-fied the module
2009-05-10 11:42:46 +00:00
Tarek Ziadé
d5d83424d2
fixed #5984 and improved test coverage
2009-05-10 10:12:08 +00:00
Benjamin Peterson
b91e8ede7a
make sure files are closed using the with statement
2009-05-10 02:29:00 +00:00
Benjamin Peterson
14c7bc2ad2
close file explicitly
2009-05-10 01:38:02 +00:00
Benjamin Peterson
784d455066
*sigh* deal with instances correctly
2009-05-09 17:23:03 +00:00
Benjamin Peterson
af1692a266
convert some more special methods to use _PyObject_LookupSpecial
2009-05-09 16:36:39 +00:00
Vinay Sajip
f9b01fe692
Issue #5971 : StreamHandler.handleError now swallows IOErrors which occur when trying to print a traceback.
2009-05-09 12:07:17 +00:00
Tarek Ziadé
812d77152e
#5976 : fixed distutils test_check_environ
2009-05-09 10:06:00 +00:00
Tarek Ziadé
e2be83def8
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
2009-05-09 08:28:53 +00:00
Benjamin Peterson
809e22543f
lookup __reversed__ correctly as a special method
2009-05-09 02:07:04 +00:00
Benjamin Peterson
84ad84e0bb
Merged revisions 72491-72493 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r72491 | benjamin.peterson | 2009-05-08 19:33:27 -0500 (Fri, 08 May 2009) | 7 lines
make 2to3 use unicode internally on 2.x
This started out as a fix for #2660 , but became this large refactoring
when I realized the dire state this was in. 2to3 now uses
tokenize.detect_encoding to decode the files correctly into unicode.
........
r72492 | benjamin.peterson | 2009-05-08 19:35:38 -0500 (Fri, 08 May 2009) | 1 line
remove compat code
........
r72493 | benjamin.peterson | 2009-05-08 19:54:15 -0500 (Fri, 08 May 2009) | 1 line
add a test for \r\n newlines
........
2009-05-09 01:01:14 +00:00
Gregory P. Smith
5edb1a1b0a
Fix an off by one error on negative indexs to __getitem__
...
http://code.google.com/p/ipaddr-py/issues/detail?id=15
2009-05-08 23:16:47 +00:00
Jeffrey Yasskin
1aa4700234
PyCode_NewEmpty:
...
Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
are trying to build an empty code object, usually to put it in a dummy frame
object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
just the filename, function name, and first line number, instead of also
requiring lots of code internals.
2009-05-08 21:51:06 +00:00
Benjamin Peterson
db7ebcf469
fix this test
2009-05-08 17:59:29 +00:00
Jeroen Ruigrok van der Werven
b87b33462c
Update the Windows locale mapping with the ones introduced with Vista.
2009-05-08 14:11:23 +00:00
Jeroen Ruigrok van der Werven
51133d4297
Add ISO-8859-16.
2009-05-08 13:07:39 +00:00
Benjamin Peterson
399e4c4f8f
add _PyObject_LookupSpecial to handle fetching special method lookup
2009-05-08 03:06:00 +00:00
Philip Jenvey
d846f1d4c2
#4351 : more appropriate DeprecationWarning stacklevels
2009-05-08 02:28:39 +00:00
Tarek Ziadé
6f9977852f
fixed AR/ARFLAGS values in test_sysconfig
2009-05-07 23:01:56 +00:00
Tarek Ziadé
99f660af3f
Fixed #5941 : added ARFLAGS for the archiver command.
2009-05-07 21:20:34 +00:00
Tarek Ziadé
ff748cd6eb
removed remaining spaces
2009-05-07 21:13:02 +00:00
R. David Murray
f7e7babb55
Pre-opened test file needs to be opened in binary mode.
2009-05-07 18:09:58 +00:00
R. David Murray
8fd522fb5f
Issue5955: aifc's close method did not close the file it wrapped,
...
now it does. This also means getfp method now returns the real fp.
2009-05-07 16:27:02 +00:00
Benjamin Peterson
0258811125
actually close files instead of leaving it to the gc #5955
2009-05-07 11:45:38 +00:00
Walter Dörwald
a7fb408a02
Issue 3739: The unicode-internal encoder now reports the number of *characters*
...
consumed like any other encoder (instead of the number of bytes).
2009-05-06 14:28:24 +00:00
Jeroen Ruigrok van der Werven
c924b3d115
Be more explicit about the error we are catching.
...
Requested by: Antoine Pitrou
2009-05-06 13:16:36 +00:00
Tarek Ziadé
56342d578e
removed string.split usage
2009-05-06 08:11:00 +00:00
Tarek Ziadé
ccf608c94c
more build_clib cleanup + test coverage
2009-05-06 08:05:47 +00:00
Tarek Ziadé
b04a05709d
pep8-fied build_clib module : it is now similar to the one in 3.x
2009-05-06 07:41:53 +00:00
Tarek Ziadé
d2bb1a5377
Added a test and cleaned check_library_list to be ready to fix #5940
2009-05-06 07:17:52 +00:00
Jeroen Ruigrok van der Werven
041f465cbd
Wrap getpreferredencoding()'s use of setlocale in a try/except to prevent
...
us from raising an exception when the locale is invalid.
Issue #1443504
2009-05-06 05:25:42 +00:00
Benjamin Peterson
eaeb4c695e
Merged revisions 68503,68507,68694,69054,69673,69679-69681,70991,70999,71003,71695 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r68503 | benjamin.peterson | 2009-01-10 14:14:49 -0600 (Sat, 10 Jan 2009) | 1 line
use variable
........
r68507 | benjamin.peterson | 2009-01-10 15:13:16 -0600 (Sat, 10 Jan 2009) | 1 line
rewrap
........
r68694 | benjamin.peterson | 2009-01-17 17:55:59 -0600 (Sat, 17 Jan 2009) | 1 line
test for specific node type
........
r69054 | guilherme.polo | 2009-01-28 10:01:54 -0600 (Wed, 28 Jan 2009) | 2 lines
Added mapping for the ttk module.
........
r69673 | benjamin.peterson | 2009-02-16 09:38:22 -0600 (Mon, 16 Feb 2009) | 1 line
fix handling of as imports #5279
........
r69679 | benjamin.peterson | 2009-02-16 11:36:06 -0600 (Mon, 16 Feb 2009) | 1 line
make Base.get_next_sibling() and Base.get_prev_sibling() properties
........
r69680 | benjamin.peterson | 2009-02-16 11:41:48 -0600 (Mon, 16 Feb 2009) | 1 line
normalize docstrings in pytree according to PEP 11
........
r69681 | benjamin.peterson | 2009-02-16 11:43:09 -0600 (Mon, 16 Feb 2009) | 1 line
use a set
........
r70991 | benjamin.peterson | 2009-04-01 15:54:50 -0500 (Wed, 01 Apr 2009) | 1 line
map urllib.urlopen to urllib.request.open #5637
........
r70999 | benjamin.peterson | 2009-04-01 17:36:47 -0500 (Wed, 01 Apr 2009) | 1 line
add very alpha support to 2to3 for running concurrently with multiprocessing
........
r71003 | benjamin.peterson | 2009-04-01 18:10:43 -0500 (Wed, 01 Apr 2009) | 1 line
fix when multiprocessing is not available or used
........
r71695 | benjamin.peterson | 2009-04-17 22:21:29 -0500 (Fri, 17 Apr 2009) | 1 line
refactor multiprocessing support, so it's less hacky to employ and only loads mp when needed
........
2009-05-05 23:13:58 +00:00
Thomas Heller
a57773e483
Fix Issue #4875 : find_library can return directories instead of files
...
(on win32)
2009-05-05 18:55:47 +00:00
Eric Smith
a985a3aee4
Issue #5920 : Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson.
2009-05-05 18:26:08 +00:00
Senthil Kumaran
2c72420a68
Fixing issue5861 - test_urllib fails on windows. Agree to comment to have ':' in pathname2url as windows recognizes it. test_urllib passes now.
2009-05-05 17:34:42 +00:00
Georg Brandl
5815220a68
Fix overlong lines.
2009-05-05 09:06:02 +00:00
Georg Brandl
4d4313d59d
#5142 : add module skipping feature to pdb.
2009-05-05 08:54:11 +00:00
Georg Brandl
7c26d76d9c
#1309567 : fix linecache behavior of stripping subdirectories from paths when looking for relative filename matches. Also add a linecache test suite.
2009-05-05 08:28:49 +00:00
Georg Brandl
f71ba95e91
#5932 : fix error return in _convertPyInt_AsSsize_t() conversion function.
2009-05-05 07:48:12 +00:00
Steven Bethard
ab538fc2b2
Update bdist_msi so that the generated MSIs for pure Python modules can install to any version of Python, like the generated EXEs from bdist_wininst. (Previously, you had to create a new MSI for each version of Python.)
2009-05-05 01:31:22 +00:00
Benjamin Peterson
7c67b03051
using sys._getframe(x), where x > 0 doesnt' work on IronPython
2009-05-05 00:55:24 +00:00