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