Commit Graph

14468 Commits

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