]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
12 years agoMerge heads
Serhiy Storchaka [Sun, 23 Jun 2013 17:27:40 +0000 (20:27 +0300)] 
Merge heads

12 years agoMerge heads
Serhiy Storchaka [Sun, 23 Jun 2013 17:25:57 +0000 (20:25 +0300)] 
Merge heads

12 years agoMerge heads
Serhiy Storchaka [Sun, 23 Jun 2013 17:25:40 +0000 (20:25 +0300)] 
Merge heads

12 years agoIssue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
Serhiy Storchaka [Sun, 23 Jun 2013 17:21:16 +0000 (20:21 +0300)] 
Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
OverflowError when an argument of %c format is out of range.

12 years agoIssue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
Serhiy Storchaka [Sun, 23 Jun 2013 17:12:14 +0000 (20:12 +0300)] 
Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
OverflowError when an argument of %c format is out of range.

12 years agoMerged fix for issue #18260 from 3.3
Łukasz Langa [Sun, 23 Jun 2013 17:12:12 +0000 (19:12 +0200)] 
Merged fix for issue #18260 from 3.3

12 years agoFixed issue #18260: configparser TypeError on source name specified as bytes
Łukasz Langa [Sun, 23 Jun 2013 17:10:25 +0000 (19:10 +0200)] 
Fixed issue #18260: configparser TypeError on source name specified as bytes

12 years agoSolaris' /dev/null is a symlink. The device test now uses stat instead of lstat to...
Christian Heimes [Sun, 23 Jun 2013 14:11:37 +0000 (16:11 +0200)] 
Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate
for symlinks.

12 years agoSolaris' /dev/null is a symlink. The device test now uses stat instead of lstat to...
Christian Heimes [Sun, 23 Jun 2013 14:10:29 +0000 (16:10 +0200)] 
Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate
for symlinks.

12 years agoimport.c does neither need mode_t nor _mkdir() anymore
Christian Heimes [Sun, 23 Jun 2013 13:53:09 +0000 (15:53 +0200)] 
import.c does neither need mode_t nor _mkdir() anymore

12 years agoAdd _stat module to VS project file -- this time with the GUI instead of manually.
Christian Heimes [Sun, 23 Jun 2013 13:50:45 +0000 (15:50 +0200)] 
Add _stat module to VS project file -- this time with the GUI instead of manually.

12 years agoadd _stat to list of builtin Windows modules
Christian Heimes [Sun, 23 Jun 2013 13:46:56 +0000 (15:46 +0200)] 
add _stat to list of builtin Windows modules

12 years ago(Merge 3.3) Issue #18135: Fix a possible integer overflow in
Victor Stinner [Sun, 23 Jun 2013 13:09:26 +0000 (15:09 +0200)] 
(Merge 3.3) Issue #18135: Fix a possible integer overflow in
ssl.SSLSocket.write() and in ssl.SSLContext.load_cert_chain() for strings and
passwords longer than 2 gigabytes.

12 years agoIssue #18135: Fix a possible integer overflow in ssl.SSLSocket.write()
Victor Stinner [Sun, 23 Jun 2013 13:08:23 +0000 (15:08 +0200)] 
Issue #18135: Fix a possible integer overflow in ssl.SSLSocket.write()
and in ssl.SSLContext.load_cert_chain() for strings and passwords longer
than 2 gigabytes.

12 years ago_ssl.c: strip trailing spaces
Victor Stinner [Sun, 23 Jun 2013 12:58:43 +0000 (14:58 +0200)] 
_ssl.c: strip trailing spaces

12 years ago(Merge 3.3) Issue #18137: Detect integer overflow on precision in
Victor Stinner [Sun, 23 Jun 2013 12:55:43 +0000 (14:55 +0200)] 
(Merge 3.3) Issue #18137: Detect integer overflow on precision in
float.__format__() and complex.__format__().

12 years agoIssue #18137: Detect integer overflow on precision in float.__format__() and
Victor Stinner [Sun, 23 Jun 2013 12:54:30 +0000 (14:54 +0200)] 
Issue #18137: Detect integer overflow on precision in float.__format__() and
complex.__format__().

12 years agoIssue #11016: Try to fix compilaton of the new _stat.c module on Windows
Victor Stinner [Sat, 22 Jun 2013 23:49:42 +0000 (01:49 +0200)] 
Issue #11016: Try to fix compilaton of the new _stat.c module on Windows

12 years agoMerge from 3.3
Andrew Kuchling [Sat, 22 Jun 2013 23:27:59 +0000 (19:27 -0400)] 
Merge from 3.3

12 years agoCloses #18220: expand itertools.islice docstring to 2 lines
Andrew Kuchling [Sat, 22 Jun 2013 23:20:54 +0000 (19:20 -0400)] 
Closes #18220: expand itertools.islice docstring to 2 lines

12 years agoClose #18285: add 'repeat' parameter to docstring for product
Andrew Kuchling [Sat, 22 Jun 2013 23:04:11 +0000 (19:04 -0400)] 
Close #18285: add 'repeat' parameter to docstring for product

12 years ago#18151 Merge from 3.3
Terry Jan Reedy [Sat, 22 Jun 2013 22:37:34 +0000 (18:37 -0400)] 
#18151 Merge from 3.3

12 years ago#18151, part 2: Silence debug build resource warning for each file opened by
Terry Jan Reedy [Sat, 22 Jun 2013 22:26:51 +0000 (18:26 -0400)] 
#18151, part 2: Silence debug build resource warning for each file opened by
'Find in files' by replacing 'open with implicit close' by 'with open' in
GrepDialog method grep_it. Streamline code with enumerate(), direct file
iteration, and output tweak. Add test for this method, including output format.

12 years agoIssue #11016: Add C implementation of the stat module as _stat
Christian Heimes [Sat, 22 Jun 2013 19:05:02 +0000 (21:05 +0200)] 
Issue #11016: Add C implementation of the stat module as _stat

12 years agoMerge from 3.3
Andrew Kuchling [Sat, 22 Jun 2013 18:57:45 +0000 (14:57 -0400)] 
Merge from 3.3

12 years ago#18113: avoid segfault if Py_XDECREF triggers code that calls set_panel_userptr again
Andrew Kuchling [Sat, 22 Jun 2013 18:50:56 +0000 (14:50 -0400)] 
#18113: avoid segfault if Py_XDECREF triggers code that calls set_panel_userptr again

Problem noted & original patch by Serhiy Storchaka; I tweaked the patch a bit.

12 years ago... also TLSv1.1 and TLSv1.2
Christian Heimes [Sat, 22 Jun 2013 17:34:17 +0000 (19:34 +0200)] 
... also TLSv1.1 and TLSv1.2

12 years agoAdd my SSL module patches to whatsnew 3.4
Christian Heimes [Sat, 22 Jun 2013 17:31:58 +0000 (19:31 +0200)] 
Add my SSL module patches to whatsnew 3.4

12 years agoBSD: block devices are gone
Christian Heimes [Sat, 22 Jun 2013 12:48:42 +0000 (14:48 +0200)] 
BSD: block devices are gone
http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html

12 years agoBSD: block devices are gone
Christian Heimes [Sat, 22 Jun 2013 12:48:32 +0000 (14:48 +0200)] 
BSD: block devices are gone
http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html

12 years agomerge for issue #18278
Brett Cannon [Fri, 21 Jun 2013 22:37:02 +0000 (18:37 -0400)] 
merge for issue #18278

12 years agoIssue #18278: properly document how the loaders are called for FileFinder
Brett Cannon [Fri, 21 Jun 2013 22:31:55 +0000 (18:31 -0400)] 
Issue #18278: properly document how the loaders are called for FileFinder

12 years agomarshal: optimize parsing of empty Unicode strings
Victor Stinner [Fri, 21 Jun 2013 17:08:06 +0000 (19:08 +0200)] 
marshal: optimize parsing of empty Unicode strings

Don't create a temporary buffer of zeroy byte nor call r_string() if the length
is zero, create directly the empty string.

12 years agoFix test_stat on BSD, /dev/da0 and /dev/ad0 are links
Christian Heimes [Fri, 21 Jun 2013 16:53:27 +0000 (18:53 +0200)] 
Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links

12 years agoFix test_stat on BSD, /dev/da0 and /dev/ad0 are links
Christian Heimes [Fri, 21 Jun 2013 16:53:13 +0000 (18:53 +0200)] 
Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links

12 years agoAdd tests for untested features of the 'stat' module (part of issue #11016)
Christian Heimes [Fri, 21 Jun 2013 16:26:05 +0000 (18:26 +0200)] 
Add tests for untested features of the 'stat' module (part of issue #11016)

12 years agoAdd tests for untested features of the 'stat' module (part of issue #11016)
Christian Heimes [Fri, 21 Jun 2013 16:25:56 +0000 (18:25 +0200)] 
Add tests for untested features of the 'stat' module (part of issue #11016)

12 years ago#12716: reorganize docs for os module a bit
Andrew Kuchling [Fri, 21 Jun 2013 15:49:57 +0000 (11:49 -0400)] 
#12716: reorganize docs for os module a bit

* Move the constants used by os.open() to after the description of os.open(),
  instead of putting them in their own section.

* Move RTLD_* constants to "Miscellaneous System Information" section, and
  mention the sys functions they're used with.

* Mention dir_fd parameter in os.open() text.

* Typo fix ("are a supported by").

12 years ago#13226: update references from ctypes/DLFCN modules to os module
Andrew Kuchling [Fri, 21 Jun 2013 14:58:41 +0000 (10:58 -0400)] 
#13226: update references from ctypes/DLFCN modules to os module

12 years agoMerge from 3.3
Andrew Kuchling [Fri, 21 Jun 2013 12:07:35 +0000 (08:07 -0400)] 
Merge from 3.3

12 years agoCloses #18218: use correct variable name for starting point
Andrew Kuchling [Fri, 21 Jun 2013 12:00:58 +0000 (08:00 -0400)] 
Closes #18218: use correct variable name for starting point

12 years agoCloses #18239: correct description of count() in module docstring
Andrew Kuchling [Fri, 21 Jun 2013 11:58:35 +0000 (07:58 -0400)] 
Closes #18239: correct description of count() in module docstring

12 years agoCloses #18247: add Lib/test/data/* to .gitignore
Andrew Kuchling [Fri, 21 Jun 2013 11:44:50 +0000 (07:44 -0400)] 
Closes #18247: add Lib/test/data/* to .gitignore

12 years agoMerge from 3.3
Andrew Kuchling [Fri, 21 Jun 2013 01:40:14 +0000 (21:40 -0400)] 
Merge from 3.3

12 years agoCloses #18267: use floor division in code example
Andrew Kuchling [Fri, 21 Jun 2013 01:33:05 +0000 (21:33 -0400)] 
Closes #18267: use floor division in code example

12 years agoGrammatical mistake in a comment
Brett Cannon [Fri, 21 Jun 2013 01:30:32 +0000 (21:30 -0400)] 
Grammatical mistake in a comment

12 years agoMerge from 3.3
Andrew Kuchling [Fri, 21 Jun 2013 01:20:20 +0000 (21:20 -0400)] 
Merge from 3.3

12 years agoCloses #18272: use 'builtins' for 3.3 instead of __builtin__
Andrew Kuchling [Fri, 21 Jun 2013 01:17:41 +0000 (21:17 -0400)] 
Closes #18272: use 'builtins' for 3.3 instead of __builtin__

12 years agowhatsnew/3.4: mention functools.singledispatch, PEP 443
Victor Stinner [Thu, 20 Jun 2013 22:36:30 +0000 (00:36 +0200)] 
whatsnew/3.4: mention functools.singledispatch, PEP 443

12 years agowhatsnew/3.4: mention the new enum module, PEP 435
Victor Stinner [Thu, 20 Jun 2013 22:31:55 +0000 (00:31 +0200)] 
whatsnew/3.4: mention the new enum module, PEP 435

12 years agoMerge from 3.3
Andrew Kuchling [Thu, 20 Jun 2013 13:51:51 +0000 (09:51 -0400)] 
Merge from 3.3

12 years ago#4153: update Unicode howto for Python 3.3
Andrew Kuchling [Thu, 20 Jun 2013 13:29:09 +0000 (09:29 -0400)] 
#4153: update Unicode howto for Python 3.3

* state that python3 source encoding is UTF-8, and give examples

* mention surrogateescape in the 'tips and tricks' section, and
  backslashreplace in the "Python's Unicode Support" section.

* Describe Unicode support provided by the re module.

* link to Nick Coghlan's and Ned Batchelder's notes/presentations.

* default filesystem encoding is now UTF-8, not ascii.

* Describe StreamRecoder class.

* update acks section

* remove usage of "I think", "I'm not going to", etc.

* various edits

* remove revision history and original outline

12 years agomerge from 3.3
Senthil Kumaran [Thu, 20 Jun 2013 03:20:26 +0000 (22:20 -0500)] 
merge from 3.3

Add -b and -X options to python man page.
Patch contributed by Corey Brune.

12 years agoAdd -b and -X options to python man page.
Senthil Kumaran [Thu, 20 Jun 2013 03:19:46 +0000 (22:19 -0500)] 
Add -b and -X options to python man page.
Patch contributed by Corey Brune.

12 years agoMerge: Tweak programming faq examples so that it (mostly) passes doctest.
R David Murray [Wed, 19 Jun 2013 20:59:22 +0000 (16:59 -0400)] 
Merge: Tweak programming faq examples so that it (mostly) passes doctest.

12 years agoTweak programming faq examples so that it (mostly) passes doctest.
R David Murray [Wed, 19 Jun 2013 20:58:26 +0000 (16:58 -0400)] 
Tweak programming faq examples so that it (mostly) passes doctest.

The exception is the import related questions at the end, which
need to be rewritten anyway.

12 years agomerge 3.3 (#18248)
Benjamin Peterson [Wed, 19 Jun 2013 16:01:58 +0000 (09:01 -0700)] 
merge 3.3 (#18248)

12 years agofix libffi build on AIX (closes #18248)
Benjamin Peterson [Wed, 19 Jun 2013 16:01:42 +0000 (09:01 -0700)] 
fix libffi build on AIX (closes #18248)

12 years agoIssue #18202: Fix minor bugs and cleanup test_source_encoding.py.
Serhiy Storchaka [Wed, 19 Jun 2013 07:29:58 +0000 (10:29 +0300)] 
Issue #18202: Fix minor bugs and cleanup test_source_encoding.py.

12 years agoIssue #18202: Fix minor bugs and cleanup test_coding.py.
Serhiy Storchaka [Wed, 19 Jun 2013 07:23:35 +0000 (10:23 +0300)] 
Issue #18202: Fix minor bugs and cleanup test_coding.py.

12 years agomerge
Brett Cannon [Wed, 19 Jun 2013 00:51:42 +0000 (20:51 -0400)] 
merge

12 years agoIssue #17177: Clarify some deprecations
Brett Cannon [Wed, 19 Jun 2013 00:49:55 +0000 (20:49 -0400)] 
Issue #17177: Clarify some deprecations

12 years agofixed libffi on PPC without __NO_FPRS__
Christian Heimes [Wed, 19 Jun 2013 00:43:19 +0000 (02:43 +0200)] 
fixed libffi on PPC without __NO_FPRS__
ISO C90 forbids mixed declarations and code

12 years agofixed libffi on PPC without __NO_FPRS__
Christian Heimes [Wed, 19 Jun 2013 00:40:38 +0000 (02:40 +0200)] 
fixed libffi on PPC without __NO_FPRS__
ISO C90 forbids mixed declarations and code

12 years agomerge heads
Christian Heimes [Wed, 19 Jun 2013 00:09:00 +0000 (02:09 +0200)] 
merge heads

12 years agomerge heads
Christian Heimes [Wed, 19 Jun 2013 00:08:41 +0000 (02:08 +0200)] 
merge heads

12 years agoIssue #18259: Declare sethostname in socketmodule.c for AIX
Christian Heimes [Wed, 19 Jun 2013 00:07:20 +0000 (02:07 +0200)] 
Issue #18259: Declare sethostname in socketmodule.c for AIX

12 years agoIssue #18259: Declare sethostname in socketmodule.c for AIX
Christian Heimes [Wed, 19 Jun 2013 00:06:29 +0000 (02:06 +0200)] 
Issue #18259: Declare sethostname in socketmodule.c for AIX

12 years agoFix compilation warning with gcc 4.8 (unused typedef)
Antoine Pitrou [Tue, 18 Jun 2013 21:28:18 +0000 (23:28 +0200)] 
Fix compilation warning with gcc 4.8 (unused typedef)

12 years agoIssue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Antoine Pitrou [Tue, 18 Jun 2013 20:19:11 +0000 (22:19 +0200)] 
Issue #18256: Compilation fix for recent AIX releases.  Patch by David Edelsohn.

12 years agoIssue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Antoine Pitrou [Tue, 18 Jun 2013 20:17:48 +0000 (22:17 +0200)] 
Issue #18256: Compilation fix for recent AIX releases.  Patch by David Edelsohn.

12 years agoFix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's...
Christian Heimes [Tue, 18 Jun 2013 11:22:37 +0000 (13:22 +0200)] 
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available

12 years agoFix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's...
Christian Heimes [Tue, 18 Jun 2013 11:22:17 +0000 (13:22 +0200)] 
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available

12 years agoGrammar tweak
Brett Cannon [Mon, 17 Jun 2013 23:58:57 +0000 (19:58 -0400)] 
Grammar tweak

12 years agoIssue #17222: fix a mix-up in some exception messages.
Brett Cannon [Mon, 17 Jun 2013 21:48:30 +0000 (17:48 -0400)] 
Issue #17222: fix a mix-up in some exception messages.

Reported by Arfrever Frehtes Taifersar Arahesis.

12 years ago(Merge 3.3) test_faulthandler: use _sigsegv() instead of _read_null()
Victor Stinner [Mon, 17 Jun 2013 21:39:06 +0000 (23:39 +0200)] 
(Merge 3.3) test_faulthandler: use _sigsegv() instead of _read_null()

faulthandler._read_null() is not reliable: it does not crash on AIX.

12 years agotest_faulthandler: use _sigsegv() instead of _read_null()
Victor Stinner [Mon, 17 Jun 2013 21:37:59 +0000 (23:37 +0200)] 
test_faulthandler: use _sigsegv() instead of _read_null()

faulthandler._read_null() is not reliable: it does not crash on AIX.

12 years ago(Merge 3.3) ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
Victor Stinner [Mon, 17 Jun 2013 20:02:14 +0000 (22:02 +0200)] 
(Merge 3.3) ctypes: AIX needs an explicit #include <alloca.h> to get alloca()

12 years agoctypes: AIX needs an explicit #include <alloca.h> to get alloca()
Victor Stinner [Mon, 17 Jun 2013 20:01:53 +0000 (22:01 +0200)] 
ctypes: AIX needs an explicit #include <alloca.h> to get alloca()

12 years ago(Merge 3.3) Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX
Victor Stinner [Mon, 17 Jun 2013 19:52:24 +0000 (21:52 +0200)] 
(Merge 3.3) Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX

sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.

12 years agoIssue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX
Victor Stinner [Mon, 17 Jun 2013 19:51:56 +0000 (21:51 +0200)] 
Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX

sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.

12 years agoIssue #18228: Use locale.setlocale(name, None) instead of
Victor Stinner [Mon, 17 Jun 2013 19:28:14 +0000 (21:28 +0200)] 
Issue #18228: Use locale.setlocale(name, None) instead of
locale.getlocale(name) in test.regrtest.saved_test_environment

locale.getlocale() parses the locale, which is useless for
saved_test_environment.

12 years agoIssue #18228: Fix locale test of test.regrtest.saved_test_environment
Victor Stinner [Mon, 17 Jun 2013 18:40:05 +0000 (20:40 +0200)] 
Issue #18228: Fix locale test of test.regrtest.saved_test_environment

Skip LC_ALL becore getlocale(locale.LC_ALL) always fail, and catch also
ValueError.

12 years ago(Merge 3.3) regrtest.py: Fix another typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:35:42 +0000 (20:35 +0200)] 
(Merge 3.3) regrtest.py: Fix another typo in the usage of the faulthandler module

12 years agoregrtest.py: Fix another typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:35:08 +0000 (20:35 +0200)] 
regrtest.py: Fix another typo in the usage of the faulthandler module

12 years ago(Merge 3.3) regrtest.py: Fix typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:28:02 +0000 (20:28 +0200)] 
(Merge 3.3) regrtest.py: Fix typo in the usage of the faulthandler module

12 years agoregrtest.py: Fix typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:27:10 +0000 (20:27 +0200)] 
regrtest.py: Fix typo in the usage of the faulthandler module

12 years agomerge heads
Christian Heimes [Mon, 17 Jun 2013 13:45:11 +0000 (15:45 +0200)] 
merge heads

12 years agoIssue #18147: Add diagnostic functions to ssl.SSLContext().
Christian Heimes [Mon, 17 Jun 2013 13:44:12 +0000 (15:44 +0200)] 
Issue #18147: Add diagnostic functions to ssl.SSLContext().

get_ca_list() lists all loaded CA certificates and cert_store_stats() returns
amount of loaded X.509 certs, X.509 CA certs and CRLs.

12 years agoMerge heads
Serhiy Storchaka [Mon, 17 Jun 2013 13:38:00 +0000 (16:38 +0300)] 
Merge heads

12 years agoIssue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
Serhiy Storchaka [Mon, 17 Jun 2013 13:36:20 +0000 (16:36 +0300)] 
Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
when \r\n appears at end of 65535 bytes without other newlines.

12 years agoIssue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
Serhiy Storchaka [Mon, 17 Jun 2013 13:34:41 +0000 (16:34 +0300)] 
Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
when \r\n appears at end of 65535 bytes without other newlines.

12 years agoIssue #18207: Fix test_ssl for some versions of OpenSSL that ignore seconds
Christian Heimes [Mon, 17 Jun 2013 13:32:57 +0000 (15:32 +0200)] 
Issue #18207: Fix test_ssl for some versions of OpenSSL that ignore seconds
in ASN1_TIME fields.

12 years agoIssue #18223: Refactor test_tarfile.
Serhiy Storchaka [Mon, 17 Jun 2013 13:11:06 +0000 (16:11 +0300)] 
Issue #18223: Refactor test_tarfile.

* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.
* Replace ImportError by  ModuleNotFoundError.

and some other minor enhancements.

12 years agoIssue #18223: Refactor test_tarfile.
Serhiy Storchaka [Mon, 17 Jun 2013 12:38:50 +0000 (15:38 +0300)] 
Issue #18223: Refactor test_tarfile.

* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.

and some other minor enhancements.

12 years agodocumentation suggesting something which doesn't exist
Brett Cannon [Sun, 16 Jun 2013 23:17:12 +0000 (19:17 -0400)] 
documentation suggesting something which doesn't exist

12 years agoMerge doc/argument name fix
Brett Cannon [Sun, 16 Jun 2013 23:09:46 +0000 (19:09 -0400)] 
Merge doc/argument name fix

12 years agomerge
Brett Cannon [Sun, 16 Jun 2013 23:07:16 +0000 (19:07 -0400)] 
merge

12 years agoFix a misnaming of a method and an argument
Brett Cannon [Sun, 16 Jun 2013 23:06:55 +0000 (19:06 -0400)] 
Fix a misnaming of a method and an argument

12 years agoIssue #18076: Introduce imoportlib.util.decode_source().
Brett Cannon [Sun, 16 Jun 2013 22:37:53 +0000 (18:37 -0400)] 
Issue #18076: Introduce imoportlib.util.decode_source().

The helper function makes it easier to implement
imoprtlib.abc.InspectLoader.get_source() by making that function
require just the raw bytes for source code and handling all other
details.