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
R. David Murray
7ba8e1cbfd
Fix issue 5890: (property subclass shadows __doc__ string) by inserting
...
the __doc__ into the subclass instance __dict__. The fix refactors
property_copy to call property_init in such a way that the __doc__
logic is re-executed correctly when getter_doc is 1, thus simplifying
property_copy.
2009-05-04 22:16:24 +00:00
Antoine Pitrou
97377bf566
Issue #5692 : In :class:`zipfile.Zipfile`, fix wrong path calculation when extracting a file to the root directory.
2009-05-04 21:17:17 +00:00
Antoine Pitrou
653dece278
Issue #4426 : The UTF-7 decoder was too strict and didn't accept some legal sequences.
...
Patch by Nick Barnes and Victor Stinner.
2009-05-04 18:32:32 +00:00
Walter Dörwald
2827709d6d
Fix typos.
2009-05-04 16:03:03 +00:00
Gregory P. Smith
d02eedacab
Issue #4751 : For hashlib algorithms provided by OpenSSL, the Python
...
GIL is now released during computation on data lengths >= 2048 bytes.
2009-05-04 00:16:49 +00:00
Gregory P. Smith
4bd76641b8
docstring update.
2009-05-03 20:27:25 +00:00
Gregory P. Smith
9ac3ee63f6
Optimization: move RFC defined network constant construction out of
...
the is_*() methods and into module private instances.
2009-05-03 19:37:05 +00:00
Kurt B. Kaiser
62e9a653b5
Further development of issue5559, handle Windows files
...
which not only have embedded spaces, but leading spaces.
2009-05-03 02:05:22 +00:00
Kurt B. Kaiser
106ac46b3f
idle.py modified and simplified to better support
...
developing experimental versions of IDLE which are
not installed in the standard location.
2009-05-03 01:03:44 +00:00
Michael Foord
07ef487a96
2009-05-02 22:43:34 +00:00
Antoine Pitrou
7430989cda
Isue #5084 : unpickling now interns the attribute names of pickled objects,
...
saving memory and avoiding growth in size of subsequent pickles. Proposal
and original patch by Jake McGuire.
2009-05-02 21:13:23 +00:00
Michael Foord
e2fb98f467
Add addCleanup and doCleanups to unittest.TestCase.
...
Closes issue 5679.
Michael Foord
2009-05-02 20:15:05 +00:00
Andrew M. Kuchling
420d4eb1f3
#1607951 : Make mailbox.Maildir re-read the directories less frequently.
...
This is done by recording the current time -1sec, and not re-reading unless
the directory mod. times are >= the recorded time.
2009-05-02 19:17:28 +00:00
Gregory P. Smith
6e7bdde2c8
Convert test method names to PEP8 style.
2009-05-02 18:58:21 +00:00
Benjamin Peterson
bf6c410b2e
revert unrelated change
2009-05-02 17:35:39 +00:00
Benjamin Peterson
6282169142
remove py3k compat code
2009-05-02 17:33:01 +00:00
Benjamin Peterson
d7e8e3444f
don't let sys.argv be used in the tests
2009-05-02 16:24:37 +00:00
Michael Foord
829f6b8052
Adds an exit parameter to unittest.main(). If False main no longer
...
calls sys.exit.
Closes issue 3379.
Michael Foord
2009-05-02 11:43:06 +00:00
Antoine Pitrou
1fc0231a22
Issue #3002 : `shutil.copyfile()` and `shutil.copytree()` now raise an
...
error when a named pipe is encountered, rather than blocking infinitely.
2009-05-01 20:55:35 +00:00
Gregory P. Smith
1d499265e0
Adds the ipaddr module to the standard library. Issue #3959 .
...
Based off of subversion r69 from http://code.google.com/p/ipaddr-py/
This code is 2to3 safe, I'll merge it into py3k later this afternoon.
2009-05-01 19:59:52 +00:00
Walter Dörwald
6733bed57e
Make test.test_support.EnvironmentVarGuard behave like a dictionary.
...
All changes are mirrored to the underlying os.environ dict, but rolled back
on exit from the with block.
2009-05-01 17:35:37 +00:00
Senthil Kumaran
4af40d2173
Fix for Issue1648102, based on the MSDN spec: If this parameter specifies the
...
"<local>" macro as the only entry, this function bypasses any host name that
does not contain a period.
2009-05-01 05:59:52 +00:00
Eric Smith
9139cc6a3b
Issue #1588 : Add complex.__format__.
2009-04-30 00:58:58 +00:00
Benjamin Peterson
2518d3c1c0
prevent ref cycles by removing bound method on close()
2009-04-30 00:23:11 +00:00
Benjamin Peterson
7c7250da45
make sure to close file
2009-04-30 00:06:33 +00:00
Benjamin Peterson
a9b4d4777a
make sure mode is removable while cleaning up test droppings
2009-04-29 22:44:15 +00:00
Benjamin Peterson
9c6fc5187f
fix test_shutil on ZFS #5676
2009-04-29 22:43:35 +00:00
Mark Dickinson
61a0d05291
Backport some of the float formatting tests from py3k.
2009-04-29 21:57:15 +00:00
Mark Dickinson
92fcc9c991
Issue #5864 : format(1234.5, '.4') gives misleading result
...
(Backport of r72109 from py3k.)
2009-04-29 20:41:00 +00:00
R. David Murray
0f457e5825
More aifc tests.
2009-04-29 20:15:18 +00:00
R. David Murray
971b1b100b
Now that we've got a test_aifc, add a few tests.
2009-04-29 13:51:44 +00:00
R. David Murray
25b4add5b0
Fix issue 2245. aifc now skips any chunk type it doesn't actually
...
process instead of throwing errors for anything not in an explicit
skip list. This is per this spec: http://www.cnpbagwell.com/aiff-c.txt .
Spec reference and test sound file provided by Santiago Peresón, fix
based on patch by Hiroaki Kawai.
2009-04-29 13:17:37 +00:00
Tarek Ziadé
a1b91d944b
Fixed #5874 : distutils.tests.test_config_cmd is not locale-sensitive anymore
2009-04-29 08:03:46 +00:00
Raymond Hettinger
a016debad0
Update spec version number.
2009-04-27 21:12:27 +00:00
Antoine Pitrou
f2651e193c
Issue #5853 : calling a function of the mimetypes module from several threads
...
at once could hit the recursion limit if the mimetypes database hadn't been
initialized before.
2009-04-27 20:50:20 +00:00
Vinay Sajip
e34d6aa86f
Issue #5854 : Updated __all__ to include some missing names and remove some names which should not be exported.
2009-04-27 13:44:27 +00:00
Kurt B. Kaiser
94290d390e
Right click 'go to file/line' not working if spaces
...
in path. Bug 5559.
2009-04-26 23:22:11 +00:00
Walter Dörwald
4b965f6ab1
Use test.test_support.EnvironmentVarGuard where tests change environment vars.
2009-04-26 20:51:44 +00:00
Walter Dörwald
4c69da2879
Fix typo.
2009-04-26 19:11:43 +00:00
Georg Brandl
d40fb70268
Update pydoc topics.
2009-04-26 09:57:29 +00:00
Georg Brandl
438192540d
Move pydoc_topics module to its own subdirectory, so that no generated code is in Lib/.
2009-04-26 09:56:44 +00:00
Martin v. Löwis
99f277933e
Issue #4971 : Fix titlecase for characters that are their own
...
titlecase, but not their own uppercase.
2009-04-26 00:53:18 +00:00
Eric Smith
068f06568b
Issue #5835 , deprecate PyOS_ascii_formatd.
...
If anyone wants to clean up the documentation, feel free. It's my first documentation foray, and it's not that great.
Will port to py3k with a different strategy.
2009-04-25 21:40:15 +00:00
Georg Brandl
208b00d03f
#5841 : add deprecation py3k warning and notice in the docs for commands module.
2009-04-25 15:11:29 +00:00
Walter Dörwald
5d98ec76bb
Issue #5828 (Invalid behavior of unicode.lower): Fixed bogus logic in
...
makeunicodedata.py and regenerated the Unicode database (This fixes
u'\u1d79'.lower() == '\x00').
2009-04-25 14:03:16 +00:00
Tarek Ziadé
bcddf6777a
#5810 : Fixed Distutils test_build_scripts
2009-04-25 12:51:59 +00:00
Tarek Ziadé
d567c38ef2
Issue #4951 : Fixed failure in test_httpservers
2009-04-25 12:38:08 +00:00
Walter Dörwald
a145317be9
Issue #5837 : Certain sequences of calls to set() and unset() for
...
support.EnvironmentVarGuard objects restored the environment variables
incorrectly on __exit__.
Fix this by recording the initial value of each environment variable on the
first access in set() or unset().
2009-04-25 12:15:07 +00:00
Mark Dickinson
0a6501bf56
Fix typo in complex parsing code; expand tests.
2009-04-25 09:47:00 +00:00
Benjamin Peterson
5083dc552b
fix a segfault when setting __class__ in __del__ #5283
2009-04-25 00:41:22 +00:00
Thomas Heller
ec21ccde12
Issue 5041: ctypes unwilling to allow pickling wide character.
2009-04-24 20:00:41 +00:00
Mark Dickinson
0badeef93e
Remove unnecessary double negative
2009-04-24 16:37:22 +00:00
Mark Dickinson
6ab635a4f4
Issue #5593 : Use more robust test for double-rounding in test_fsum.
...
While we're at it, use new unittest.skipUnless decorator to
implement skipping for that test.
2009-04-24 16:34:14 +00:00
Mark Dickinson
4af8e745c4
Issue #5812 : The two-argument form of the Fraction constructor
...
now accepts arbitrary Rational instances.
2009-04-24 13:56:07 +00:00
Mark Dickinson
95bc980d9e
Issue #5816 :
...
- simplify parsing and printing of complex numbers
- make complex(repr(z)) round-tripping work for complex
numbers involving nans, infs, or negative zeros
- don't accept some of the stranger complex strings
that were previously allowed---e.g., complex('1..1j')
2009-04-24 12:46:53 +00:00
Kurt B. Kaiser
f13447f3f7
Produce correct version string to access the .chm
...
docs on Windows. Patch 5783 gpolo. Will port.
2009-04-23 02:36:01 +00:00
Mark Dickinson
8100bd8431
Issue #5812 : make Fraction('1e-6') valid. Backport of r71806.
2009-04-22 18:15:25 +00:00
Eric Smith
ebafbb705c
Fixed issue 5782: formatting with commas didn't work if no specifier type code was given.
2009-04-22 16:20:47 +00:00
Nick Coghlan
5533ff6a2e
Issue 5354: Change API for import_fresh_module() to better support test_warnings use case (also fixes some bugs in the original implementation)
2009-04-22 15:26:04 +00:00
Eric Smith
aca19e6a74
Backport of some of the work in r71665 to trunk. This reworks much of
...
int, long, and float __format__(), and it keeps their implementation
in sync with py3k.
Also added PyOS_double_to_string. This is the "fallback" version
that's also available in trunk, and should be kept in sync with that
code. I'll add an issue to document PyOS_double_to_string in the C
API.
There are many internal cleanups. Externally visible changes include:
- Implement PEP 378, Format Specifier for Thousands Separator, for
floats, ints, and longs.
- Issue #5515 : 'n' formatting for ints, longs, and floats handles
leading zero formatting poorly.
- Issue #5772 : For float.__format__, don't add a trailing ".0" if
we're using no type code and we have an exponent.
2009-04-22 13:29:05 +00:00
Vinay Sajip
cbb5308723
Issue #5170 : Fixed regression caused when fixing #5768 .
2009-04-22 12:10:47 +00:00
R. David Murray
95fb46c977
Restore skips of posix and pty tests on Windows by calling the
...
test_support.import_module on the appropriate modules
before any other imports.
2009-04-21 13:06:04 +00:00
Senthil Kumaran
7c2867fcb1
Fix for the Issue918368 - urllib doesn't correct server returned urls
2009-04-21 03:24:19 +00:00
Mark Dickinson
a7e734fcee
Nit: integer division should use //, not /
2009-04-20 21:41:04 +00:00
Mark Dickinson
6736cf8d20
Issue #3166 : Make long -> float (and int -> float) conversions
...
correctly rounded, using round-half-to-even. This ensures that the
value of float(n) doesn't depend on whether we're using 15-bit digits
or 30-bit digits for Python longs.
2009-04-20 21:13:33 +00:00
Tarek Ziadé
2c4e741447
making BuildWinInstTestCase silent in case bdist_wininst is not run under win32
2009-04-20 10:33:47 +00:00
Tarek Ziadé
92d77b7eac
#5795 sysconfig._config_vars was shadowed in tearDown
2009-04-20 07:53:55 +00:00
Mark Dickinson
9be2697fb6
Automatic conversion of floats to integers for struct.pack integer codes
...
is deprecated. Use an explicit int() instead.
2009-04-19 17:10:47 +00:00
Benjamin Peterson
accb3d0014
move test to a more appropiate one
2009-04-18 21:03:10 +00:00
Benjamin Peterson
d4d400cb8a
try to initalize all builtin types with PyType_Ready to avoid problems like #5787
2009-04-18 20:12:47 +00:00
Benjamin Peterson
baba195eb2
fix a few nits in unittest.py #5771
2009-04-18 19:26:19 +00:00
Mark Dickinson
1bdf7e9cab
Issue #1869 : Fix a couple of minor round() issues.
2009-04-18 14:59:42 +00:00
Tarek Ziadé
783f493173
DistutilsSetupError was not raised when one single warning occured
2009-04-17 14:29:56 +00:00
Vinay Sajip
74f045088d
Issue #5768 : Change to Unicode output logic and test case for same.
2009-04-16 19:07:37 +00:00
Benjamin Peterson
99d36f1563
call __float__ on str subclasses #5759
...
tests by R. David Murray
2009-04-15 21:26:36 +00:00
Tarek Ziadé
eb6e0f583d
pep8-fied
2009-04-13 20:14:54 +00:00
Tarek Ziadé
2fdd0d5ab7
improved test coverage for distutils.cmd
2009-04-13 20:03:44 +00:00
Tarek Ziadé
710fbc32ae
deactivate test_search_cpp under win32
2009-04-13 12:42:26 +00:00
Georg Brandl
73709e62ff
#5741 followup: should also allow %%(blah)s.
2009-04-13 12:36:24 +00:00
Tarek Ziadé
156c31a7be
Fixed #5607 : Distutils test_get_platform was failing fo Mac OS X fat binaries.
2009-04-13 12:34:01 +00:00
R. David Murray
dcad046d39
Adjust test_asyncore to account for intentional asyncore behavior change
...
introduced by r70934 that was causing a test failure when run under -O.
2009-04-13 01:06:46 +00:00
Georg Brandl
aa48157d3d
#5719 : add short usage example to optparse docstring.
2009-04-12 20:30:53 +00:00
Benjamin Peterson
457fefc3f8
remove useless import
2009-04-12 20:24:56 +00:00
Georg Brandl
21cf5ee6fd
#5741 : dont disallow double percent signs in SafeConfigParser.set() keys.
2009-04-12 17:24:11 +00:00
Tarek Ziadé
3295eed64b
removed string usage and added a test for _clean
2009-04-12 17:02:08 +00:00
Tarek Ziadé
e643bed198
added a test for finalize_options
2009-04-12 16:45:32 +00:00
Tarek Ziadé
f6f4b3084c
added a simple test for search_cpp
2009-04-12 16:31:24 +00:00
Tarek Ziadé
7bea344d35
pep8-fied the module before adding tests
2009-04-12 15:03:50 +00:00
Tarek Ziadé
aa48798f1e
removed the print statements and added a test
2009-04-12 14:53:51 +00:00
R. David Murray
5331d4b4de
Make test_asyncore tests match code changes introduced by the
...
fix to Issue1161031, refactoring the test to simplify it in
the process.
2009-04-11 17:52:56 +00:00
Tarek Ziadé
c2936b786a
testing a full check case
2009-04-11 15:14:17 +00:00
Tarek Ziadé
942825f7de
#5732 : added the check command into Distutils
2009-04-11 14:55:07 +00:00
Nick Coghlan
cd2e7042ae
Issue 5354: Provide a standardised testing mechanism for doing fresh imports of modules, including the ability to block extension modules in order to test the pure Python fallbacks
2009-04-11 13:31:31 +00:00
Chris Withers
b524825788
remove unpleasant exec
2009-04-11 11:22:19 +00:00
Georg Brandl
e019706862
#5698 : Fix casing of !DOCTYPE to conform to W3C specs.
2009-04-10 08:20:23 +00:00
R. David Murray
0374a82f75
Issue #2170 : refactored xml.dom.minidom.normalize, increasing both
...
its clarity and its speed.
2009-04-09 21:54:50 +00:00
Tarek Ziadé
ad95826c33
Fixed #5731 : Distutils bdist_wininst no longer worked on non-Windows platforms
2009-04-09 21:36:44 +00:00
Collin Winter
f8089c7789
Issue 5665: add more pickling tests.
...
- Add tests for the module-level load() and dump() functions.
- Add tests for cPickle's internal data structures, stressing workloads
with many gets/puts.
- Add tests for the Pickler and Unpickler classes, in particular the
memo attribute.
- test_xpickle is extended to test backwards compatibility with Python
2.4, 2.5 and 2.6 by round-tripping pickled objects through a worker
process. This is guarded with a regrtest -u xpickle resource.
2009-04-09 16:46:46 +00:00
Raymond Hettinger
1355a3dbf6
Minor factoring.
2009-04-08 08:26:55 +00:00
Raymond Hettinger
a5cd6375c0
Add docstrings.
2009-04-08 05:39:38 +00:00
Jack Diederich
7f9bb9142e
- Make timing assertions very generous (a la test_timeout.py)
...
- Break the gc cycle in negotiation tests
- test the different guarantees of read_lazy and read_very_lazy
2009-04-07 23:56:57 +00:00
Jack Diederich
3b2312ee5c
eliminate more race conditions in telnetlib tests
2009-04-07 20:22:59 +00:00
Vinay Sajip
14bf0a0a37
Issue #5695 : Minor tweak to improve the code as suggested by Brett Cannon and as implemented in the Py3K branch.
2009-04-07 17:18:24 +00:00
Benjamin Peterson
dda7b1990b
revert unrelated change to test_telnetlib
2009-04-07 16:03:04 +00:00
Benjamin Peterson
a1b821cf60
fix since difference formating of SyntaxErrors
2009-04-07 15:52:05 +00:00
Benjamin Peterson
52b9620c19
fix syntax tests after formatting change
2009-04-07 15:15:04 +00:00
Benjamin Peterson
a27e6e3d58
add create_connection to __all__ #5711
2009-04-06 21:53:33 +00:00
Gregory P. Smith
923ba361d8
- Issue #2254 : Fix CGIHTTPServer information disclosure. Relative paths are
...
now collapsed within the url properly before looking in cgi_directories.
2009-04-06 06:33:26 +00:00
Jack Diederich
183028ed79
test the telnetlib.Telnet interface more thoroughly
2009-04-06 02:08:44 +00:00
Gregory P. Smith
6d30793cf2
Fixes issue5705: os.setuid() and friends did not accept the same range of
...
values that pwd.getpwnam() returns.
2009-04-05 23:43:58 +00:00
Tarek Ziadé
fdda68e030
pep8-fied method names
2009-04-05 23:03:10 +00:00
Tarek Ziadé
64408fb4c5
Fixed #5095 : msi missing from Distutils bdist formats
2009-04-05 22:51:09 +00:00
Tarek Ziadé
d9e221d232
added a simplest test to distutils.spawn._nt_quote_args
2009-04-05 22:04:38 +00:00
Tarek Ziadé
faa6b121fb
Fixed #1491431 : distutils.filelist.glob_to_re was broken for some edge cases (detailed in the test
2009-04-05 21:44:08 +00:00
Matthias Klose
a5d58c831f
- Issue #2703 : SimpleXMLRPCDispatcher.__init__: Provide default values for
...
new arguments introduced in 2.5.
2009-04-05 21:00:48 +00:00
Michael Foord
f2dfef1637
Adding assertIs and assertIsNot methods to unittest.TestCase
...
Issue #2578
2009-04-05 19:19:28 +00:00
Georg Brandl
7ab5eb91b7
#602893 : add indicator for current line in cgitb that doesnt rely on styling alone.
2009-04-05 18:34:58 +00:00
Tarek Ziadé
453d953f3e
Fixed 5694: removed spurious test output in Distutils
2009-04-05 18:31:24 +00:00
Georg Brandl
d4315191ca
#5432 : make plistlib docstring a raw string, since it contains examples with backslash escapes.
2009-04-05 15:14:29 +00:00
Georg Brandl
3f0ef20269
#5471 : fix expanduser() for $HOME set to "/".
2009-04-05 14:48:49 +00:00
Georg Brandl
dc4a77159b
#1326077 : fix traceback formatting of SyntaxErrors. This fixes two differences with formatting coming from Python: a) the reproduction of location details in the error message if no line text is given, b) the prefixing of the last line by one space.
2009-04-05 14:24:52 +00:00
Vinay Sajip
1e566cec6f
Issue #5695 : Moved logging.captureWarnings() call inside with statement in WarningsTest.test_warnings.
2009-04-05 11:06:24 +00:00
Georg Brandl
50ba6e1b50
#1726172 : dont raise an unexpected IndexError if a voidresp() call has an empty response.
2009-04-05 10:48:47 +00:00
Michael Foord
37d89a2955
Change the way unittest.TestSuite use their tests to always access them through iteration. Non behavior changing, this allows you to create custom subclasses that override __iter__.
...
Issue #5693
2009-04-05 01:15:01 +00:00
Benjamin Peterson
1d22d00e97
compare types with is
2009-04-05 01:04:38 +00:00
Hirokazu Yamamoto
772033f08c
No behavior change.
2009-04-04 17:20:05 +00:00
Raymond Hettinger
e3bc5577e8
Replace the localized min/max calls with normal if/else
2009-04-04 08:46:58 +00:00
Kurt B. Kaiser
013d6cc0df
Allow multiple IDLE GUI/subprocess pairs to exist
...
simultaneously. Thanks to David Scherer for suggesting
the use of an ephemeral port for the GUI.
Patch 1529142 Weeble.
2009-04-04 07:03:48 +00:00
Raymond Hettinger
6ecb1a3145
Localize the function lookup in timeit.
2009-04-03 02:43:54 +00:00