Commit graph

14457 commits

Author SHA1 Message Date
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