]> granicus.if.org Git - python/log
python
15 years ago#6536 fixed typo
Ezio Melotti [Tue, 21 Jul 2009 20:18:27 +0000 (20:18 +0000)]
#6536 fixed typo

15 years agoRevert rev 74134, as it does not completely fixx issue #6493.
Thomas Heller [Tue, 21 Jul 2009 19:04:02 +0000 (19:04 +0000)]
Revert rev 74134, as it does not completely fixx issue #6493.

15 years agomust use _PyThreadState_Current so it isn't checked for NULL #6530
Benjamin Peterson [Tue, 21 Jul 2009 14:08:40 +0000 (14:08 +0000)]
must use _PyThreadState_Current so it isn't checked for NULL #6530

15 years agoIssue #6493: Fix a ctypes problem setting bitfields more than 31 bits
Thomas Heller [Tue, 21 Jul 2009 06:27:14 +0000 (06:27 +0000)]
Issue #6493: Fix a ctypes problem setting bitfields more than 31 bits
wide.

15 years agoMerged revisions 74121-74122 via svnmerge from
Benjamin Peterson [Mon, 20 Jul 2009 21:09:45 +0000 (21:09 +0000)]
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
........

15 years agothe Slice in x[::] has to have step as None to help the interpreter
Benjamin Peterson [Mon, 20 Jul 2009 20:28:08 +0000 (20:28 +0000)]
the Slice in x[::] has to have step as None to help the interpreter

15 years agoMerged revisions 74116 via svnmerge from
Benjamin Peterson [Mon, 20 Jul 2009 17:24:30 +0000 (17:24 +0000)]
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
........

15 years agoMerged revisions 73771,73811,73840,73842,73848-73849,73861,73957-73960,73964-73969...
Benjamin Peterson [Mon, 20 Jul 2009 15:33:09 +0000 (15:33 +0000)]
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
........

15 years agoremove docs for deprecated -p option
Benjamin Peterson [Mon, 20 Jul 2009 13:30:10 +0000 (13:30 +0000)]
remove docs for deprecated -p option

15 years agohttp://bugs.python.org/issue6499
Kristján Valur Jónsson [Sun, 19 Jul 2009 22:35:44 +0000 (22:35 +0000)]
http://bugs.python.org/issue6499
gzip.GzipFile may not exist as a parent class

15 years agohttp://bugs.python.org/issue6499
Kristján Valur Jónsson [Sun, 19 Jul 2009 22:14:00 +0000 (22:14 +0000)]
http://bugs.python.org/issue6499
zlib/gzip may not be present for all builds.  Make xmlrpclib gracefully not supporg gzip encoding in this case

15 years agosplit unittest.py into a package
Benjamin Peterson [Sun, 19 Jul 2009 20:18:21 +0000 (20:18 +0000)]
split unittest.py into a package

15 years agoFix for issue5102, timeout value propages between redirects, proxy, digest and
Senthil Kumaran [Sun, 19 Jul 2009 02:43:43 +0000 (02:43 +0000)]
Fix for issue5102, timeout value propages between redirects, proxy, digest and
auth handlers. Fixed tests to reflect the same.

15 years agoAdd Case Van Horsen to Misc/ACKS, for fractions module patches and other work
Mark Dickinson [Sat, 18 Jul 2009 16:01:57 +0000 (16:01 +0000)]
Add Case Van Horsen to Misc/ACKS, for fractions module patches and other work

15 years agoIssue #6431: Fix Fraction comparisons with unknown types, and with
Mark Dickinson [Sat, 18 Jul 2009 15:18:18 +0000 (15:18 +0000)]
Issue #6431:  Fix Fraction comparisons with unknown types, and with
float infinities and nans.  Backport of r74078 from py3k.

15 years ago#6489: fix an ambiguity in getiterator() documentation.
Georg Brandl [Sat, 18 Jul 2009 09:43:40 +0000 (09:43 +0000)]
#6489: fix an ambiguity in getiterator() documentation.

15 years ago#6505: fix typos.
Georg Brandl [Sat, 18 Jul 2009 09:06:31 +0000 (09:06 +0000)]
#6505: fix typos.

15 years ago#6513: fix example code: warning categories are classes, not instances.
Georg Brandl [Sat, 18 Jul 2009 09:03:10 +0000 (09:03 +0000)]
#6513: fix example code: warning categories are classes, not instances.

15 years agoAdd a check to ensure the correct autoconf version is used
Alexandre Vassalotti [Sat, 18 Jul 2009 00:31:06 +0000 (00:31 +0000)]
Add a check to ensure the correct autoconf version is used
for generating the configure script.

Original idea by Martin von Löwis.

15 years agoRegenerate configure script using autoconf 2.61.
Alexandre Vassalotti [Fri, 17 Jul 2009 23:17:48 +0000 (23:17 +0000)]
Regenerate configure script using autoconf 2.61.

15 years agoRevert r74048.
Alexandre Vassalotti [Fri, 17 Jul 2009 23:09:02 +0000 (23:09 +0000)]
Revert r74048.

15 years agoFix GCC warning about fprintf used without a string literal and
Alexandre Vassalotti [Fri, 17 Jul 2009 08:09:04 +0000 (08:09 +0000)]
Fix GCC warning about fprintf used without a string literal and
without format arguments.

15 years agoInitialize variables in PyCurses_getsyx() to avoid compiler warnings.
Alexandre Vassalotti [Fri, 17 Jul 2009 07:54:23 +0000 (07:54 +0000)]
Initialize variables in PyCurses_getsyx() to avoid compiler warnings.

15 years agoRegenerate configure script.
Alexandre Vassalotti [Fri, 17 Jul 2009 07:46:46 +0000 (07:46 +0000)]
Regenerate configure script.

15 years agoDouble-quote the test case for %zd printf() format support to avoid
Alexandre Vassalotti [Fri, 17 Jul 2009 06:33:51 +0000 (06:33 +0000)]
Double-quote the test case for %zd printf() format support to avoid
mangling the array declarations in it.

15 years agoNEWS about r74040.
Hirokazu Yamamoto [Fri, 17 Jul 2009 06:26:54 +0000 (06:26 +0000)]
NEWS about r74040.

15 years agoIssue #6415: Fixed warnings.warn sagfault on bad formatted string.
Hirokazu Yamamoto [Fri, 17 Jul 2009 06:20:46 +0000 (06:20 +0000)]
Issue #6415: Fixed warnings.warn sagfault on bad formatted string.

15 years agoClean up the test case for broken poll().
Alexandre Vassalotti [Fri, 17 Jul 2009 06:17:33 +0000 (06:17 +0000)]
Clean up the test case for broken poll().

15 years agoDouble-quote the test cases for chflags() and lchflags()
Alexandre Vassalotti [Fri, 17 Jul 2009 06:10:06 +0000 (06:10 +0000)]
Double-quote the test cases for chflags() and lchflags()
to ensure they don't get mangled.

15 years agoCache the results of all runtime checks.
Alexandre Vassalotti [Fri, 17 Jul 2009 05:26:39 +0000 (05:26 +0000)]
Cache the results of all runtime checks.

This will be helpful to people who want to compile Python with a
cross-compiler. Now you can upload the configure script on your host
machine, run it with caching enabled, and download the cached results
on your build machine.

15 years agoRename the useless AC_INCLUDES_DEFAULT and protect the includes.
Alexandre Vassalotti [Fri, 17 Jul 2009 04:59:05 +0000 (04:59 +0000)]
Rename the useless AC_INCLUDES_DEFAULT and protect the includes.

This is mostly an aesthetic change.

15 years agoUse AC_CHECK_SIZEOF to find the size of off_t, pthread_t and time_t.
Alexandre Vassalotti [Fri, 17 Jul 2009 04:24:45 +0000 (04:24 +0000)]
Use AC_CHECK_SIZEOF to find the size of off_t, pthread_t and time_t.

15 years agoRevert r74028.
Georg Brandl [Thu, 16 Jul 2009 21:47:51 +0000 (21:47 +0000)]
Revert r74028.

15 years ago#6482: simplify "except: raise" to "finally:".
Georg Brandl [Thu, 16 Jul 2009 19:24:48 +0000 (19:24 +0000)]
#6482: simplify "except: raise" to "finally:".

15 years ago#6466 refactored distutils duplicate get_versions() functions (used to get gcc/ld...
Tarek Ziadé [Thu, 16 Jul 2009 15:35:45 +0000 (15:35 +0000)]
#6466 refactored distutils duplicate get_versions() functions (used to get gcc/ld/dllwrap versions)

15 years agoIssue 6433: multiprocessing.pool.map hangs on empty list
Jesse Noller [Thu, 16 Jul 2009 14:23:04 +0000 (14:23 +0000)]
Issue 6433: multiprocessing.pool.map hangs on empty list

15 years ago#6481: fix typo in os.system() replacement.
Georg Brandl [Thu, 16 Jul 2009 07:38:35 +0000 (07:38 +0000)]
#6481: fix typo in os.system() replacement.

15 years ago#6486: start with built in functions rather than "built in objects".
Georg Brandl [Thu, 16 Jul 2009 07:33:04 +0000 (07:33 +0000)]
#6486: start with built in functions rather than "built in objects".

15 years ago#5910: fix kqueue for calls with more than one event.
Georg Brandl [Thu, 16 Jul 2009 07:18:07 +0000 (07:18 +0000)]
#5910: fix kqueue for calls with more than one event.

15 years ago#6076 Add a title to the IDLE Preferences window.
Amaury Forgeot d'Arc [Wed, 15 Jul 2009 21:29:27 +0000 (21:29 +0000)]
#6076 Add a title to the IDLE Preferences window.

15 years agoIssue #2389: Pickle array objects using a list representation for portability
Alexandre Vassalotti [Wed, 15 Jul 2009 18:19:47 +0000 (18:19 +0000)]
Issue #2389: Pickle array objects using a list representation for portability
across different machine architectures and compatibility with Python 3.x.

15 years agomethods' names pep8ification
Ezio Melotti [Wed, 15 Jul 2009 17:07:04 +0000 (17:07 +0000)]
methods' names pep8ification

15 years agoupdate year
Benjamin Peterson [Wed, 15 Jul 2009 00:46:42 +0000 (00:46 +0000)]
update year

15 years agoMove TestRunner initialisation into unittest.TestProgram.runTests. Fixes issue 6418.
Michael Foord [Tue, 14 Jul 2009 17:58:12 +0000 (17:58 +0000)]
Move TestRunner initialisation into unittest.TestProgram.runTests. Fixes issue 6418.

15 years agoDocument the newly added codec
Amaury Forgeot d'Arc [Mon, 13 Jul 2009 23:11:54 +0000 (23:11 +0000)]
Document the newly added codec

15 years agoUse a different VER command output parser to address the localization
Marc-André Lemburg [Mon, 13 Jul 2009 21:28:33 +0000 (21:28 +0000)]
Use a different VER command output parser to address the localization
issues mentioned in #3410.

Prepare for Windows 7 (still commented out).

15 years agoUse a new global DEV_NULL instead of hard-coding /dev/null into the system
Marc-André Lemburg [Mon, 13 Jul 2009 20:23:49 +0000 (20:23 +0000)]
Use a new global DEV_NULL instead of hard-coding /dev/null into the system
command helper functions.

See #6479 for some motivation.

15 years agoNEWS entry for r74000.
Amaury Forgeot d'Arc [Mon, 13 Jul 2009 20:03:21 +0000 (20:03 +0000)]
NEWS entry for r74000.

15 years ago#1616979: Add the cp720 (Arabic DOS) encoding.
Amaury Forgeot d'Arc [Mon, 13 Jul 2009 20:01:11 +0000 (20:01 +0000)]
#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.

15 years agoSet svn:eol-style=CRLF on all Visual Studio solution files.
Amaury Forgeot d'Arc [Mon, 13 Jul 2009 19:14:17 +0000 (19:14 +0000)]
Set svn:eol-style=CRLF on all Visual Studio solution files.
This should allow direct compilation from a downloaded source tar ball.

15 years agoIssue #6314: logging: Extra checks on the "level" argument in more places.
Vinay Sajip [Mon, 13 Jul 2009 11:21:05 +0000 (11:21 +0000)]
Issue #6314: logging: Extra checks on the "level" argument in more places.

15 years agofix umlaut
Benjamin Peterson [Mon, 13 Jul 2009 00:03:20 +0000 (00:03 +0000)]
fix umlaut

15 years agochange encoding to utf-8
Benjamin Peterson [Sun, 12 Jul 2009 23:56:18 +0000 (23:56 +0000)]
change encoding to utf-8

15 years agofix another name
Benjamin Peterson [Sun, 12 Jul 2009 23:49:23 +0000 (23:49 +0000)]
fix another name

15 years agochange encoding to utf-8
Benjamin Peterson [Sun, 12 Jul 2009 23:44:43 +0000 (23:44 +0000)]
change encoding to utf-8

15 years agofix Tarek's name
Benjamin Peterson [Sun, 12 Jul 2009 23:40:33 +0000 (23:40 +0000)]
fix Tarek's name

15 years agohttp://bugs.python.org/issue6267
Kristján Valur Jónsson [Sun, 12 Jul 2009 22:42:08 +0000 (22:42 +0000)]
http://bugs.python.org/issue6267
Add more tests for the xlmrpc.ServerProxy

15 years agoadd Joe
Benjamin Peterson [Sun, 12 Jul 2009 21:18:55 +0000 (21:18 +0000)]
add Joe

15 years agoadd versionadded
Benjamin Peterson [Sun, 12 Jul 2009 16:56:54 +0000 (16:56 +0000)]
add versionadded

15 years agoFixed distutils test.
Hirokazu Yamamoto [Sun, 12 Jul 2009 02:04:47 +0000 (02:04 +0000)]
Fixed distutils test.

15 years agoignore things in Lib/test/data/
Benjamin Peterson [Sat, 11 Jul 2009 22:25:24 +0000 (22:25 +0000)]
ignore things in Lib/test/data/

15 years agoput downloaded test support files in Lib/test/data instead of the cwd
Benjamin Peterson [Sat, 11 Jul 2009 22:15:13 +0000 (22:15 +0000)]
put downloaded test support files in Lib/test/data instead of the cwd

15 years agoreverted changes for #6459 (doesn't apply on 2.x)
Tarek Ziadé [Sat, 11 Jul 2009 17:21:00 +0000 (17:21 +0000)]
reverted changes for #6459 (doesn't apply on 2.x)

15 years ago#2622 Import errors in email.message, from a py2app standalone application.
Amaury Forgeot d'Arc [Sat, 11 Jul 2009 14:33:51 +0000 (14:33 +0000)]
#2622 Import errors in email.message, from a py2app standalone application.

Patch by Mads Kiilerich, Reviewed by Barry Warsaw.

15 years agoarray.array is actually a class.
Georg Brandl [Sat, 11 Jul 2009 14:23:38 +0000 (14:23 +0000)]
array.array is actually a class.

15 years agofixed #6459: distutils.command.build_ext.get_export_symbols now uses 'PyInit'
Tarek Ziadé [Sat, 11 Jul 2009 10:55:27 +0000 (10:55 +0000)]
fixed #6459: distutils.command.build_ext.get_export_symbols now uses 'PyInit'

15 years ago#6456: clarify the meaning of constants used as arguments to nl_langinfo().
Georg Brandl [Sat, 11 Jul 2009 10:51:31 +0000 (10:51 +0000)]
#6456: clarify the meaning of constants used as arguments to nl_langinfo().

15 years agocleaned up distutils.build_ext module
Tarek Ziadé [Sat, 11 Jul 2009 10:48:31 +0000 (10:48 +0000)]
cleaned up distutils.build_ext module

15 years ago#6430: add note about size of "u" type.
Georg Brandl [Sat, 11 Jul 2009 10:37:38 +0000 (10:37 +0000)]
#6430: add note about size of "u" type.

15 years ago#6448: clarify docs for find_module().
Georg Brandl [Sat, 11 Jul 2009 10:18:10 +0000 (10:18 +0000)]
#6448: clarify docs for find_module().

15 years ago#6446: fix import_spam() function to use correct error and reference handling.
Georg Brandl [Sat, 11 Jul 2009 10:14:54 +0000 (10:14 +0000)]
#6446: fix import_spam() function to use correct error and reference handling.

15 years agoFix style.
Georg Brandl [Sat, 11 Jul 2009 10:12:36 +0000 (10:12 +0000)]
Fix style.

15 years agoAdd basic tests for the return value of os.popen().close().
Amaury Forgeot d'Arc [Sat, 11 Jul 2009 09:09:59 +0000 (09:09 +0000)]
Add basic tests for the return value of os.popen().close().
According to #6358, python 3.0 has a different implementation that behaves differently.

15 years agohttp://bugs.python.org/issue6460
Kristján Valur Jónsson [Sat, 11 Jul 2009 08:44:43 +0000 (08:44 +0000)]
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.

15 years agomore cleanups and if zlib -> skipUnless(zlib)
Ezio Melotti [Fri, 10 Jul 2009 20:25:56 +0000 (20:25 +0000)]
more cleanups and if zlib -> skipUnless(zlib)

15 years ago#6447: typo in subprocess docstring
Amaury Forgeot d'Arc [Fri, 10 Jul 2009 16:47:42 +0000 (16:47 +0000)]
#6447: typo in subprocess docstring

15 years agocleaned up distutils.command.build
Tarek Ziadé [Fri, 10 Jul 2009 10:00:21 +0000 (10:00 +0000)]
cleaned up distutils.command.build

15 years agoAdded test coverage for distutils.command.build
Tarek Ziadé [Fri, 10 Jul 2009 09:57:15 +0000 (09:57 +0000)]
Added test coverage for distutils.command.build

15 years agoFixed #6455 (the test shall use pyd files under win32, rather than so files)
Tarek Ziadé [Fri, 10 Jul 2009 09:10:33 +0000 (09:10 +0000)]
Fixed #6455 (the test shall use pyd files under win32, rather than so files)

15 years ago#6416: Fix compilation of the select module on Windows, as well as test_subprocess:
Amaury Forgeot d'Arc [Thu, 9 Jul 2009 22:37:22 +0000 (22:37 +0000)]
#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)

15 years agoTry to fix Solaris buildbot rmtree failure in test_getcwd_long_pathnames
R. David Murray [Thu, 9 Jul 2009 18:41:03 +0000 (18:41 +0000)]
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).

15 years agoTemporarily ignore rmtree errors in test_getcwd_long_pathnames to see
R. David Murray [Thu, 9 Jul 2009 16:17:30 +0000 (16:17 +0000)]
Temporarily ignore rmtree errors in test_getcwd_long_pathnames to see
if the test gives useful failure info on Solaris buildbot.

15 years agoCurdir needs to be in the path for the test to work on all buildbots.
R. David Murray [Thu, 9 Jul 2009 15:35:33 +0000 (15:35 +0000)]
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).

15 years agoSpecify umask in execute bit test to get consistent results
R. David Murray [Thu, 9 Jul 2009 13:55:44 +0000 (13:55 +0000)]
Specify umask in execute bit test to get consistent results
and make sure we test resetting all three execute bits.

15 years agoPendingDeprecationWarning -> DeprecationWarning in build_ext
Tarek Ziadé [Thu, 9 Jul 2009 07:42:42 +0000 (07:42 +0000)]
PendingDeprecationWarning -> DeprecationWarning in build_ext

15 years agoMake test work with -O.
R. David Murray [Thu, 9 Jul 2009 02:06:17 +0000 (02:06 +0000)]
Make test work with -O.

15 years agoConditionalize test cleanup code to eliminate traceback, which will
R. David Murray [Thu, 9 Jul 2009 01:43:41 +0000 (01:43 +0000)]
Conditionalize test cleanup code to eliminate traceback, which will
hopefully reveal the real problem.

15 years agoSets the compiler attribute to keep the old behavior for third-party packages.
Tarek Ziadé [Wed, 8 Jul 2009 22:40:51 +0000 (22:40 +0000)]
Sets the compiler attribute to keep the old behavior for third-party packages.

16 years agoIssue #1523: Remove deprecated overflow masking in struct module, and
Mark Dickinson [Tue, 7 Jul 2009 15:08:28 +0000 (15:08 +0000)]
Issue #1523: Remove deprecated overflow masking in struct module, and
make sure that out-of-range values consistently raise struct.error.

16 years agoExpand test coverage for struct.pack with native integer packing;
Mark Dickinson [Tue, 7 Jul 2009 14:15:45 +0000 (14:15 +0000)]
Expand test coverage for struct.pack with native integer packing;
reorganize the test_struct module to remove duplicated code and tests.

16 years agoAdd skipping to struct test that only applies when overflow masking is in effect
Mark Dickinson [Tue, 7 Jul 2009 11:08:23 +0000 (11:08 +0000)]
Add skipping to struct test that only applies when overflow masking is in effect

16 years agoTypo in error message
Mark Dickinson [Tue, 7 Jul 2009 10:18:22 +0000 (10:18 +0000)]
Typo in error message

16 years agoUpdate issue 6070 patch to match the patch that was actually tested
R. David Murray [Tue, 7 Jul 2009 09:54:16 +0000 (09:54 +0000)]
Update issue 6070 patch to match the patch that was actually tested
on Windows.

16 years agohttp://bugs.python.org/issue6382
Kristján Valur Jónsson [Tue, 7 Jul 2009 09:01:34 +0000 (09:01 +0000)]
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.

16 years ago#6420: Fix a compilation warning in the nis module, for OpenBSD and FreeBSD.
Amaury Forgeot d'Arc [Tue, 7 Jul 2009 06:49:41 +0000 (06:49 +0000)]
#6420: Fix a compilation warning in the nis module, for OpenBSD and FreeBSD.

16 years agoGrow the allocated buffer in PyUnicode_EncodeUTF7 to avoid buffer overrun.
Alexandre Vassalotti [Tue, 7 Jul 2009 02:17:30 +0000 (02:17 +0000)]
Grow the allocated buffer in PyUnicode_EncodeUTF7 to avoid buffer overrun.

Without this change, test_unicode.UnicodeTest.test_codecs_utf7 crashes in
debug mode. What happens is the unicode string u'\U000abcde' with a length
of 1 encodes to the string '+2m/c3g-' of length 8. Since only 5 bytes is
reserved in the buffer, a buffer overrun occurs.

16 years agoIssue 6070: when creating a compiled file, after copying the mode bits, on
R. David Murray [Tue, 7 Jul 2009 01:06:13 +0000 (01:06 +0000)]
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.

16 years agoFixed #6377: distutils compiler switch ignored (and added a deprecation warning if...
Tarek Ziadé [Mon, 6 Jul 2009 12:50:46 +0000 (12:50 +0000)]
Fixed #6377: distutils compiler switch ignored (and added a deprecation warning if compiler is not used as supposed = a string option)

16 years agohttp://bugs.python.org/issue6382
Kristján Valur Jónsson [Sun, 5 Jul 2009 20:56:57 +0000 (20:56 +0000)]
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.

16 years agoIssues #1530559, #1741130: Fix various inconsistencies in struct.pack
Mark Dickinson [Sun, 5 Jul 2009 10:01:24 +0000 (10:01 +0000)]
Issues #1530559, #1741130:  Fix various inconsistencies in struct.pack
integer packing, and reenable some previously broken tests.