]> granicus.if.org Git - python/log
python
14 years agoIssue #6501: os.device_encoding() returns None on Windows if the application
Victor Stinner [Mon, 23 May 2011 16:12:52 +0000 (18:12 +0200)]
Issue #6501: os.device_encoding() returns None on Windows if the application
has no console.

14 years agomake sure build_dir.build_lib is synced to the faked build location
Tarek Ziade [Mon, 23 May 2011 15:35:20 +0000 (17:35 +0200)]
make sure build_dir.build_lib is synced to the faked build location

14 years agoMerge 3.2
Victor Stinner [Mon, 23 May 2011 12:58:07 +0000 (14:58 +0200)]
Merge 3.2

14 years agoMerge 3.1
Victor Stinner [Mon, 23 May 2011 12:57:05 +0000 (14:57 +0200)]
Merge 3.1

14 years agotest_codecs now removes the temporay file (created by the test)
Victor Stinner [Mon, 23 May 2011 12:51:42 +0000 (14:51 +0200)]
test_codecs now removes the temporay file (created by the test)

14 years agoIssue #12105: test_posix, add the value of O_CLOEXEC in the error message
Victor Stinner [Mon, 23 May 2011 10:54:52 +0000 (12:54 +0200)]
Issue #12105: test_posix, add the value of O_CLOEXEC in the error message

14 years agoClose #12153: faulthandler, mark stack_overflow() as static
Victor Stinner [Mon, 23 May 2011 10:29:10 +0000 (12:29 +0200)]
Close #12153: faulthandler, mark stack_overflow() as static

14 years agoUpdate documentation to mention bytes instead byte string and correct one
Gregory P. Smith [Mon, 23 May 2011 05:29:49 +0000 (22:29 -0700)]
Update documentation to mention bytes instead byte string and correct one
mentioned string to the accurate description of what type is required.

14 years agoRefer to the return value on nameindex and friends as a string, not a byte
Gregory P. Smith [Mon, 23 May 2011 05:16:57 +0000 (22:16 -0700)]
Refer to the return value on nameindex and friends as a string, not a byte
string.  The code was fixed to return strings instead of bytes and to accept
either.

14 years agomerged
Martin v. Löwis [Mon, 23 May 2011 05:04:05 +0000 (07:04 +0200)]
merged

14 years agoAdd 3.2.1rc2 uuid.
Martin v. Löwis [Mon, 23 May 2011 05:02:07 +0000 (07:02 +0200)]
Add 3.2.1rc2 uuid.

14 years agoIssue #12151: test_logging writes debug messages to stderr, not stdout
Victor Stinner [Sun, 22 May 2011 23:16:44 +0000 (01:16 +0200)]
Issue #12151: test_logging writes debug messages to stderr, not stdout

stdout are lost in buildbots

14 years agoskip more tests in packaging if threading is not supported
Tarek Ziade [Sun, 22 May 2011 22:41:27 +0000 (00:41 +0200)]
skip more tests in packaging if threading is not supported

14 years agonot using a server name anymore as the 127.0.0.1 <> localhost symmetry is not true...
Tarek Ziade [Sun, 22 May 2011 21:25:48 +0000 (23:25 +0200)]
not using a server name anymore as the 127.0.0.1 <> localhost symmetry is not true under Windows 7

14 years agoIssue #10801: Remove a debug print() from test_zipfile
Victor Stinner [Sun, 22 May 2011 20:12:27 +0000 (22:12 +0200)]
Issue #10801: Remove a debug print() from test_zipfile

14 years agoIssue 12132 - skip the test_buil_ext test if the xx module is not found
Tarek Ziade [Sun, 22 May 2011 20:09:55 +0000 (22:09 +0200)]
Issue 12132 - skip the test_buil_ext test if the xx module is not found

14 years agoIssue 10126 - backported distutils fix for the enable-share mode into packaging
Tarek Ziade [Sun, 22 May 2011 19:21:44 +0000 (21:21 +0200)]
Issue 10126 - backported distutils fix for the enable-share mode into packaging

14 years agoIssue #12105: Add O_CLOEXEC to the os module.
Charles-François Natali [Sun, 22 May 2011 18:42:32 +0000 (20:42 +0200)]
Issue #12105: Add O_CLOEXEC to the os module.

14 years agoIssue #12138: fix use of transient_internet() in test_urllibnet
Antoine Pitrou [Sun, 22 May 2011 15:35:48 +0000 (17:35 +0200)]
Issue #12138: fix use of transient_internet() in test_urllibnet

14 years agoIssue #12138: fix use of transient_internet() in test_urllibnet
Antoine Pitrou [Sun, 22 May 2011 15:35:17 +0000 (17:35 +0200)]
Issue #12138: fix use of transient_internet() in test_urllibnet

14 years agoregrtest: enable faulthandler in main() instead of if __name__ == '__main__':
Victor Stinner [Sun, 22 May 2011 13:27:14 +0000 (15:27 +0200)]
regrtest: enable faulthandler in main() instead of if __name__ == '__main__':

So it's also enabled when using "./python -m test".

14 years agoIssue #12079: Decimal(0).fma(Decimal('inf'), 'not a number') should give a TypeError...
Mark Dickinson [Sun, 22 May 2011 11:53:18 +0000 (12:53 +0100)]
Issue #12079: Decimal(0).fma(Decimal('inf'), 'not a number') should give a TypeError, not a Decimal.InvalidOperation

14 years agoAdd 3.2.1rc2 uuid.
Martin v. Loewis [Sun, 22 May 2011 10:59:35 +0000 (12:59 +0200)]
Add 3.2.1rc2 uuid.

14 years agoIssue 12126: removing incorrect claim about return value of select
Eli Bendersky [Sun, 22 May 2011 03:59:49 +0000 (06:59 +0300)]
Issue 12126: removing incorrect claim about return value of select
merge 3.2 -> default

14 years agoIssue 12126: removing incorrect claim about return value of select
Eli Bendersky [Sun, 22 May 2011 03:57:17 +0000 (06:57 +0300)]
Issue 12126: removing incorrect claim about return value of select
merge 3.1 -> 3.2

14 years agoIssue 12126: removing incorrect claim about return value of select
Eli Bendersky [Sun, 22 May 2011 03:56:15 +0000 (06:56 +0300)]
Issue 12126: removing incorrect claim about return value of select

14 years agoIssue #12131: Ensure that the sysconfig.cfg file, introduced by packaging,
Ned Deily [Sat, 21 May 2011 23:06:58 +0000 (16:06 -0700)]
Issue #12131: Ensure that the sysconfig.cfg file, introduced by packaging,
is installed into the lib directory: prevents startup exception in site.py.

14 years agoadded the Content-Length header. that fixes the weird packaging.pypi.errors.HashDoesN...
Tarek Ziade [Sat, 21 May 2011 21:59:09 +0000 (23:59 +0200)]
added the Content-Length header. that fixes the weird packaging.pypi.errors.HashDoesNotMatch errors

14 years agodeactivating one test under win32 for now
Tarek Ziade [Sat, 21 May 2011 21:05:19 +0000 (23:05 +0200)]
deactivating one test under win32 for now

14 years agomake sure the crawler can browse file-based indexes under win32
Tarek Ziade [Sat, 21 May 2011 20:47:40 +0000 (22:47 +0200)]
make sure the crawler can browse file-based indexes under win32

14 years agofixed the export symbols for the win32 linker
Tarek Ziade [Sat, 21 May 2011 19:48:04 +0000 (21:48 +0200)]
fixed the export symbols for the win32 linker

14 years agoskip the pypi upload doc test via https, if ssl is not available
Tarek Ziade [Sat, 21 May 2011 17:53:45 +0000 (19:53 +0200)]
skip the pypi upload doc test via https, if ssl is not available

14 years agouse the same line terminator everywhere
Tarek Ziade [Sat, 21 May 2011 17:45:48 +0000 (19:45 +0200)]
use the same line terminator everywhere

14 years agoMerge 3.2.1rc1 release changes to default.
Georg Brandl [Sat, 21 May 2011 17:43:36 +0000 (19:43 +0200)]
Merge 3.2.1rc1 release changes to default.

14 years agoSimplify example
Raymond Hettinger [Sat, 21 May 2011 16:37:36 +0000 (09:37 -0700)]
Simplify example

14 years agoSimplify example
Raymond Hettinger [Sat, 21 May 2011 16:33:45 +0000 (09:33 -0700)]
Simplify example

14 years agoIssue #12136: Added change to handle non-availability of the ssl module.
Vinay Sajip [Sat, 21 May 2011 15:46:41 +0000 (16:46 +0100)]
Issue #12136: Added change to handle non-availability of the ssl module.

14 years agoSet up branch to be rc2 next.
Georg Brandl [Sat, 21 May 2011 15:36:20 +0000 (17:36 +0200)]
Set up branch to be rc2 next.

14 years agoMerge release branch after 3.2.1rc1.
Georg Brandl [Sat, 21 May 2011 15:35:33 +0000 (17:35 +0200)]
Merge release branch after 3.2.1rc1.

14 years agofixed the move api in packaging.install, and closing the handle left by mkstemp(...
Tarek Ziade [Sat, 21 May 2011 13:12:10 +0000 (15:12 +0200)]
fixed the move api in packaging.install, and closing the handle left by mkstemp() in its test module

14 years agowe want to generate /-separated paths setup.cfg files even under win32
Tarek Ziade [Sat, 21 May 2011 12:24:14 +0000 (14:24 +0200)]
we want to generate /-separated paths setup.cfg files even under win32

14 years agoavoid a compiler warning. the compiler doesn't know that the static
Gregory P. Smith [Sat, 21 May 2011 12:19:42 +0000 (05:19 -0700)]
avoid a compiler warning. the compiler doesn't know that the static
struct guarantees the loop will always be run once to initialize code.

14 years agoAdded SSL test for HTTPHandler.
Vinay Sajip [Sat, 21 May 2011 10:32:15 +0000 (11:32 +0100)]
Added SSL test for HTTPHandler.

14 years agofixed the way the cfg file markers values are split under win32
Tarek Ziade [Sat, 21 May 2011 10:00:10 +0000 (12:00 +0200)]
fixed the way the cfg file markers values are split under win32

14 years agofixed the separator issues in packaging/resources+config
Tarek Ziade [Sat, 21 May 2011 09:48:16 +0000 (11:48 +0200)]
fixed the separator issues in packaging/resources+config

14 years agofixed a few mocking/cleanup issues in packaging test_util for win32
Tarek Ziade [Sat, 21 May 2011 08:37:58 +0000 (10:37 +0200)]
fixed a few mocking/cleanup issues in packaging test_util for win32

14 years agoClose #12114: fix a potential deadlock in packaging.util._find_exe_version()
Victor Stinner [Sat, 21 May 2011 00:20:36 +0000 (02:20 +0200)]
Close #12114: fix a potential deadlock in packaging.util._find_exe_version()

Avoid also zombi processes: Popen.communicate() calls its wait() method.

14 years agoAdded SSL capability to TestHTTPServer.
Vinay Sajip [Fri, 20 May 2011 23:34:51 +0000 (00:34 +0100)]
Added SSL capability to TestHTTPServer.

14 years agoFix another ResourceWarning in test_packaging.
Ezio Melotti [Fri, 20 May 2011 17:27:54 +0000 (20:27 +0300)]
Fix another ResourceWarning in test_packaging.

14 years agomerge 3.2
Benjamin Peterson [Fri, 20 May 2011 16:49:58 +0000 (11:49 -0500)]
merge 3.2

14 years agomerge 3.1
Benjamin Peterson [Fri, 20 May 2011 16:49:19 +0000 (11:49 -0500)]
merge 3.1

14 years agothis should actually be an IOError
Benjamin Peterson [Fri, 20 May 2011 16:49:06 +0000 (11:49 -0500)]
this should actually be an IOError

14 years agomerge heads
Benjamin Peterson [Fri, 20 May 2011 16:43:41 +0000 (11:43 -0500)]
merge heads

14 years agomerge 3.2
Benjamin Peterson [Fri, 20 May 2011 16:42:47 +0000 (11:42 -0500)]
merge 3.2

14 years agomerge 3.1
Benjamin Peterson [Fri, 20 May 2011 16:41:59 +0000 (11:41 -0500)]
merge 3.1

14 years agoadd example for not using access
Benjamin Peterson [Fri, 20 May 2011 16:41:13 +0000 (11:41 -0500)]
add example for not using access

14 years agoFix more ResourceWarnings in test_packaging moving the join() and server_close()...
Ezio Melotti [Fri, 20 May 2011 16:35:58 +0000 (19:35 +0300)]
Fix more ResourceWarnings in test_packaging moving the join() and server_close() in the stop method.

14 years agoIssue #1746656: make if_nameindex(), if_indextoname() and if_nametoindex()
Charles-François Natali [Fri, 20 May 2011 14:55:06 +0000 (16:55 +0200)]
Issue #1746656: make if_nameindex(), if_indextoname() and if_nametoindex()
accept and return str instead of bytes arrays. Add some more tests.

14 years ago#12072: merge with 3.2.
Ezio Melotti [Fri, 20 May 2011 12:06:58 +0000 (15:06 +0300)]
#12072: merge with 3.2.

14 years ago#12072: merge with 3.1.
Ezio Melotti [Fri, 20 May 2011 12:06:32 +0000 (15:06 +0300)]
#12072: merge with 3.1.

14 years ago#12072: add missing parenthesis in the doc. Patch by Sandro Tosi.
Ezio Melotti [Fri, 20 May 2011 12:04:38 +0000 (15:04 +0300)]
#12072: add missing parenthesis in the doc.  Patch by Sandro Tosi.

14 years agoFix several ResourceWarnings in test_packaging.
Ezio Melotti [Fri, 20 May 2011 11:13:58 +0000 (14:13 +0300)]
Fix several ResourceWarnings in test_packaging.

14 years ago(Merge 3.2) test_pydoc: skip PydocServerTest if thread support is disabled
Victor Stinner [Fri, 20 May 2011 00:29:55 +0000 (02:29 +0200)]
(Merge 3.2) test_pydoc: skip PydocServerTest if thread support is disabled

14 years agotest_pydoc: skip PydocServerTest if thread support is disabled
Victor Stinner [Fri, 20 May 2011 00:29:13 +0000 (02:29 +0200)]
test_pydoc: skip PydocServerTest if thread support is disabled

14 years agopackaging.tests.test_command_install_data: restore correctly sysconfig._SCHEMES
Victor Stinner [Thu, 19 May 2011 23:56:42 +0000 (01:56 +0200)]
packaging.tests.test_command_install_data: restore correctly sysconfig._SCHEMES

14 years agofix packaging tests on Windows: use os.path.join() in glob patterns
Victor Stinner [Thu, 19 May 2011 22:33:39 +0000 (00:33 +0200)]
fix packaging tests on Windows: use os.path.join() in glob patterns

14 years ago(Merge 3.2) Issue #12124: zipimport doesn't keep a reference to
Victor Stinner [Thu, 19 May 2011 22:22:39 +0000 (00:22 +0200)]
(Merge 3.2) Issue #12124: zipimport doesn't keep a reference to
zlib.decompress() anymore to be able to unload the module.

14 years ago(Merge 3.1) Issue #12124: zipimport doesn't keep a reference to
Victor Stinner [Thu, 19 May 2011 22:18:58 +0000 (00:18 +0200)]
(Merge 3.1) Issue #12124: zipimport doesn't keep a reference to
zlib.decompress() anymore to be able to unload the module.

14 years agoIssue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore
Victor Stinner [Thu, 19 May 2011 22:16:09 +0000 (00:16 +0200)]
Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore
to be able to unload the module.

14 years agopackaging: fix the constructor of FakePopen
Victor Stinner [Thu, 19 May 2011 22:12:10 +0000 (00:12 +0200)]
packaging: fix the constructor of FakePopen

packaging.util requires the env keyword.

14 years agofix packaging.compiler.msvc9compiler: os.environ['path'] value is also a str
Victor Stinner [Thu, 19 May 2011 22:05:58 +0000 (00:05 +0200)]
fix packaging.compiler.msvc9compiler: os.environ['path'] value is also a str

Don't encode the path list

14 years agofix packaging.compiler.msvc9compiler: os.environ values are str, not bytes
Victor Stinner [Thu, 19 May 2011 21:46:03 +0000 (23:46 +0200)]
fix packaging.compiler.msvc9compiler: os.environ values are str, not bytes

14 years agoIssue #12112: fix the encoding of setup.py in the packaging module
Victor Stinner [Thu, 19 May 2011 19:42:47 +0000 (21:42 +0200)]
Issue #12112: fix the encoding of setup.py in the packaging module

 * read: use tokenize.detect_encoding()
 * write: use 'utf-8'

14 years agoRefactor a few tests to use the new requires_zlib decorator.
Ezio Melotti [Thu, 19 May 2011 19:03:22 +0000 (22:03 +0300)]
Refactor a few tests to use the new requires_zlib decorator.

14 years agoSkip tests that require zlib in the packaging tests. Also add a requires_zlib decora...
Ezio Melotti [Thu, 19 May 2011 18:25:10 +0000 (21:25 +0300)]
Skip tests that require zlib in the packaging tests.  Also add a requires_zlib decorator to test.support.

14 years agoIssue #12120, Issue #12119: tests were missing a sys.dont_write_bytecode check
Tarek Ziade [Thu, 19 May 2011 17:56:12 +0000 (19:56 +0200)]
Issue #12120, Issue #12119: tests were missing a sys.dont_write_bytecode check

14 years agoremoved unused method in packaging.create
Tarek Ziade [Thu, 19 May 2011 17:07:06 +0000 (19:07 +0200)]
removed unused method in packaging.create

14 years agoIssue #12112: packaging reads/writes metadata using UTF-8
Victor Stinner [Thu, 19 May 2011 16:49:56 +0000 (18:49 +0200)]
Issue #12112: packaging reads/writes metadata using UTF-8

14 years agoIssue #12112: packaging reads and writes setup.cfg using UTF-8
Victor Stinner [Thu, 19 May 2011 16:45:32 +0000 (18:45 +0200)]
Issue #12112: packaging reads and writes setup.cfg using UTF-8

14 years agopackage: replace open(fn, 'w').close() by open(fn, 'wb').close()
Victor Stinner [Thu, 19 May 2011 13:52:59 +0000 (15:52 +0200)]
package: replace open(fn, 'w').close() by open(fn, 'wb').close()

We don't need to open the files in text mode just to create them (or update
their modification time).

14 years agopackaging: use with open() instead of try/finally: close
Victor Stinner [Thu, 19 May 2011 13:51:27 +0000 (15:51 +0200)]
packaging: use with open() instead of try/finally: close

14 years agofixed the path splitting
Tarek Ziade [Thu, 19 May 2011 13:51:54 +0000 (15:51 +0200)]
fixed the path splitting

14 years agoIssue #12115: skipping all tests that need threading under a threadless environment
Tarek Ziade [Thu, 19 May 2011 13:26:59 +0000 (15:26 +0200)]
Issue #12115: skipping all tests that need threading under a threadless environment

14 years agoIssue #10419, issue #6011: port 6ad356525381 fix from distutils to packaging
Victor Stinner [Thu, 19 May 2011 13:18:36 +0000 (15:18 +0200)]
Issue #10419, issue #6011: port 6ad356525381 fix from distutils to packaging

build_scripts command of packaging now handles correctly non-ASCII path (path
to the Python executable). Open and write the script in binary mode, but ensure
that the shebang is decodable from UTF-8 and from the encoding of the script.

14 years agopackaging: don't use locale encoding to compute MD5 checksums
Victor Stinner [Thu, 19 May 2011 13:09:57 +0000 (15:09 +0200)]
packaging: don't use locale encoding to compute MD5 checksums

Open the file in binary mode or use UTF-8 encoding.

14 years agoIssue #12113: make sure generated module is not reused on a second run
Tarek Ziade [Thu, 19 May 2011 12:46:10 +0000 (14:46 +0200)]
Issue #12113: make sure generated module is not reused on a second run

14 years agomake sure split() is called before the encoding
Tarek Ziade [Thu, 19 May 2011 11:59:45 +0000 (13:59 +0200)]
make sure split() is called before the encoding

14 years agoIssue #12109 fixing typo in packaging's test_command_upload_docs
Tarek Ziade [Thu, 19 May 2011 11:46:41 +0000 (13:46 +0200)]
Issue #12109 fixing typo in packaging's test_command_upload_docs

14 years agoinitial import of the packaging package in the standard library
Tarek Ziade [Thu, 19 May 2011 11:07:25 +0000 (13:07 +0200)]
initial import of the packaging package in the standard library

14 years agoos.sendfile() test: fix "AttributeError: 'NoneType' object has no attribute 'Thread...
Giampaolo Rodola' [Wed, 18 May 2011 19:28:39 +0000 (21:28 +0200)]
os.sendfile() test: fix "AttributeError: 'NoneType' object has no attribute 'Thread'" when running tests with --without-threads option.
reference: http://bugs.python.org/issue10882#msg136257

14 years agoSkip test_smtpnet when ssl is not available
Antoine Pitrou [Wed, 18 May 2011 18:02:50 +0000 (20:02 +0200)]
Skip test_smtpnet when ssl is not available

14 years agoNull merge
Antoine Pitrou [Wed, 18 May 2011 16:58:48 +0000 (18:58 +0200)]
Null merge

14 years agoFix section title
Antoine Pitrou [Wed, 18 May 2011 16:58:09 +0000 (18:58 +0200)]
Fix section title

14 years agoIssue #12065: connect_ex() on an SSL socket now returns the original errno
Antoine Pitrou [Wed, 18 May 2011 16:52:20 +0000 (18:52 +0200)]
Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket's timeout expires (it used to return None).

14 years agoIssue #12065: connect_ex() on an SSL socket now returns the original errno
Antoine Pitrou [Wed, 18 May 2011 16:51:06 +0000 (18:51 +0200)]
Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket's timeout expires (it used to return None).

14 years agoAlso protect ehlo() and quit() with the transient_internet() context manager
Antoine Pitrou [Wed, 18 May 2011 16:04:04 +0000 (18:04 +0200)]
Also protect ehlo() and quit() with the transient_internet() context manager

14 years agoIssue #8809: The SMTP_SSL constructor and SMTP.starttls() now support
Antoine Pitrou [Wed, 18 May 2011 16:03:09 +0000 (18:03 +0200)]
Issue #8809: The SMTP_SSL constructor and SMTP.starttls() now support
passing a `context` argument pointing to an ssl.SSLContext instance.
Patch by Kasun Herath.

14 years agoOoops, add the missing file of the backport of commit 33543b4e0e5d from Python
Victor Stinner [Wed, 18 May 2011 11:48:41 +0000 (13:48 +0200)]
Ooops, add the missing file of the backport of commit 33543b4e0e5d from Python
3.2 (#10801: In zipfile, support different encodings for the header and the
filenames.  Patch by MvL, test by Eli Bendersky.)

14 years agoBackport commit 33543b4e0e5d from Python 3.2: #10801: In zipfile, support
Victor Stinner [Wed, 18 May 2011 11:43:23 +0000 (13:43 +0200)]
Backport commit 33543b4e0e5d from Python 3.2: #10801: In zipfile, support
different encodings for the header and the filenames.  Patch by MvL, test by
Eli Bendersky.

14 years ago(Merge 3.2) Issue #12096: Fix a race condition in
Victor Stinner [Tue, 17 May 2011 22:20:18 +0000 (00:20 +0200)]
(Merge 3.2) Issue #12096: Fix a race condition in
test_threading.test_waitfor(). Patch written by Charles-François Natali.