Benjamin Peterson
2ed7521e96
merge 3.2
2011-05-20 11:49:58 -05:00
Benjamin Peterson
619323c68f
merge 3.1
2011-05-20 11:49:19 -05:00
Benjamin Peterson
2340986fe0
this should actually be an IOError
2011-05-20 11:49:06 -05:00
Benjamin Peterson
a5a16bf532
merge heads
2011-05-20 11:43:41 -05:00
Benjamin Peterson
7f071e6e9f
merge 3.2
2011-05-20 11:42:47 -05:00
Benjamin Peterson
c7dd737ef7
merge 3.1
2011-05-20 11:41:59 -05:00
Benjamin Peterson
249b508c98
add example for not using access
2011-05-20 11:41:13 -05:00
Ezio Melotti
2177ac9c41
Fix more ResourceWarnings in test_packaging moving the join() and server_close() in the stop method.
2011-05-20 19:35:58 +03:00
Charles-François Natali
6071359de1
Issue #1746656 : make if_nameindex(), if_indextoname() and if_nametoindex()
...
accept and return str instead of bytes arrays. Add some more tests.
2011-05-20 16:55:06 +02:00
Ezio Melotti
e724665182
#12072 : merge with 3.2.
2011-05-20 15:06:58 +03:00
Ezio Melotti
da5b852c7c
#12072 : merge with 3.1.
2011-05-20 15:06:32 +03:00
Ezio Melotti
261d855fd6
#12072 : add missing parenthesis in the doc. Patch by Sandro Tosi.
2011-05-20 15:04:38 +03:00
Ezio Melotti
86c54f0955
Fix several ResourceWarnings in test_packaging.
2011-05-20 14:13:58 +03:00
Victor Stinner
ba8ef7a81d
(Merge 3.2) test_pydoc: skip PydocServerTest if thread support is disabled
2011-05-20 02:29:55 +02:00
Victor Stinner
62a68f2dbe
test_pydoc: skip PydocServerTest if thread support is disabled
2011-05-20 02:29:13 +02:00
Victor Stinner
4050c69f78
packaging.tests.test_command_install_data: restore correctly sysconfig._SCHEMES
2011-05-20 01:56:42 +02:00
Victor Stinner
e1e3b12979
fix packaging tests on Windows: use os.path.join() in glob patterns
2011-05-20 00:33:39 +02:00
Victor Stinner
21809a6938
(Merge 3.2) Issue #12124 : zipimport doesn't keep a reference to
...
zlib.decompress() anymore to be able to unload the module.
2011-05-20 00:22:39 +02:00
Victor Stinner
4445ec81c1
(Merge 3.1) Issue #12124 : zipimport doesn't keep a reference to
...
zlib.decompress() anymore to be able to unload the module.
2011-05-20 00:18:58 +02:00
Victor Stinner
4925cde1cc
Issue #12124 : zipimport doesn't keep a reference to zlib.decompress() anymore
...
to be able to unload the module.
2011-05-20 00:16:09 +02:00
Victor Stinner
f966803c08
packaging: fix the constructor of FakePopen
...
packaging.util requires the env keyword.
2011-05-20 00:12:10 +02:00
Victor Stinner
8914fed842
fix packaging.compiler.msvc9compiler: os.environ['path'] value is also a str
...
Don't encode the path list
2011-05-20 00:05:58 +02:00
Victor Stinner
9999185447
fix packaging.compiler.msvc9compiler: os.environ values are str, not bytes
2011-05-19 23:46:03 +02:00
Victor Stinner
9cf6d13141
Issue #12112 : fix the encoding of setup.py in the packaging module
...
* read: use tokenize.detect_encoding()
* write: use 'utf-8'
2011-05-19 21:42:47 +02:00
Ezio Melotti
975077a889
Refactor a few tests to use the new requires_zlib decorator.
2011-05-19 22:03:22 +03:00
Ezio Melotti
cad648cbc9
Skip tests that require zlib in the packaging tests. Also add a requires_zlib decorator to test.support.
2011-05-19 21:25:10 +03:00
Tarek Ziade
ebbb14c1a1
Issue #12120 , Issue #12119 : tests were missing a sys.dont_write_bytecode check
2011-05-19 19:56:12 +02:00
Tarek Ziade
2db2d3beeb
removed unused method in packaging.create
2011-05-19 19:07:06 +02:00
Victor Stinner
c3364529b8
Issue #12112 : packaging reads/writes metadata using UTF-8
2011-05-19 18:49:56 +02:00
Victor Stinner
dd13dd4bcc
Issue #12112 : packaging reads and writes setup.cfg using UTF-8
2011-05-19 18:45:32 +02:00
Victor Stinner
4c9706bd27
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).
2011-05-19 15:52:59 +02:00
Victor Stinner
21a9c748aa
packaging: use with open() instead of try/finally: close
2011-05-19 15:51:27 +02:00
Tarek Ziade
0e3f3a7076
fixed the path splitting
2011-05-19 15:51:54 +02:00
Tarek Ziade
fd88318ac4
Issue #12115 : skipping all tests that need threading under a threadless environment
2011-05-19 15:26:59 +02:00
Victor Stinner
cfd365b937
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.
2011-05-19 15:18:36 +02:00
Victor Stinner
35de5ac44d
packaging: don't use locale encoding to compute MD5 checksums
...
Open the file in binary mode or use UTF-8 encoding.
2011-05-19 15:09:57 +02:00
Tarek Ziade
cd0f7bfd32
Issue #12113 : make sure generated module is not reused on a second run
2011-05-19 14:46:10 +02:00
Tarek Ziade
311a2d1bc9
make sure split() is called before the encoding
2011-05-19 13:59:45 +02:00
Tarek Ziade
3b1a22a6df
Issue #12109 fixing typo in packaging's test_command_upload_docs
2011-05-19 13:46:41 +02:00
Tarek Ziade
1231a4e097
initial import of the packaging package in the standard library
2011-05-19 13:07:25 +02:00
Giampaolo Rodola'
566f8a646e
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
2011-05-18 21:28:39 +02:00
Antoine Pitrou
0d38f2e65f
Skip test_smtpnet when ssl is not available
2011-05-18 20:02:50 +02:00
Antoine Pitrou
e0cb15ac9d
Null merge
2011-05-18 18:58:48 +02:00
Antoine Pitrou
f23f786c61
Fix section title
2011-05-18 18:58:09 +02:00
Antoine Pitrou
7a616f2fc5
Issue #12065 : connect_ex() on an SSL socket now returns the original errno
...
when the socket's timeout expires (it used to return None).
2011-05-18 18:52:20 +02:00
Antoine Pitrou
b4410dbea6
Issue #12065 : connect_ex() on an SSL socket now returns the original errno
...
when the socket's timeout expires (it used to return None).
2011-05-18 18:51:06 +02:00
Antoine Pitrou
cc9ca223d6
Also protect ehlo() and quit() with the transient_internet() context manager
2011-05-18 18:04:04 +02:00
Antoine Pitrou
e065020680
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.
2011-05-18 18:03:09 +02:00
Victor Stinner
ae8856fe36
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.)
2011-05-18 13:48:41 +02:00
Victor Stinner
ff1d2f4cc5
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.
2011-05-18 13:43:23 +02:00