Serhiy Storchaka
0f8f784a77
Removed duplicated words in in comments and docs.
2014-12-01 18:16:30 +02:00
Serhiy Storchaka
d862db0d09
Issue #21032 . Fixed socket leak if HTTPConnection.getresponse() fails.
...
Original patch by Martin Panter.
2014-12-01 13:07:28 +02:00
Benjamin Peterson
d5355178ad
merge 2.7.9 release branch
2014-11-30 11:51:48 -05:00
Benjamin Peterson
f8c8d2e366
backout fac649bf2d10 ( #9179 ) for further consideration
2014-11-30 11:47:54 -05:00
Serhiy Storchaka
c354285f2b
Issue #21280 : Fixed a bug in shutil.make_archive() when create an archive of
...
current directory in current directory.
2014-11-28 00:50:06 +02:00
Serhiy Storchaka
20994f1e27
Issue #22609 : Constructors and update methods of mapping classes in the
...
collections module now accept the self keyword argument.
2014-11-27 19:02:56 +02:00
Benjamin Peterson
2e26a62363
use skipUnless
2014-11-26 14:35:56 -06:00
Benjamin Peterson
f7363ed8ef
use more ugly but hopefully more robust method
2014-11-25 16:12:32 -06:00
Benjamin Peterson
69a64d3fc2
handle errors without a reason attribute
2014-11-25 15:43:58 -06:00
Benjamin Peterson
f671de4dd4
don't fail tests when www.python.org can't be validated by the system
2014-11-25 15:16:55 -06:00
Benjamin Peterson
226fa562bf
debugging: print ca certs loaded into default ctx
2014-11-24 23:25:29 -06:00
Berker Peksag
dfdae021b9
Issue #16056 : Rename test methods to avoid conflict.
2014-11-24 23:57:00 +02:00
Benjamin Peterson
51f461fbd3
is OpenIndiana actually sunos?
2014-11-23 22:34:04 -06:00
Benjamin Peterson
98b1b24fea
loosen solaris test
2014-11-23 22:22:59 -06:00
Benjamin Peterson
0636a4ba88
skip test_gdb on OpenIndiana
2014-11-23 22:02:47 -06:00
Benjamin Peterson
e3e7d40514
pep 476: verify certificates by default ( #22417 )
2014-11-23 21:02:02 -06:00
Benjamin Peterson
b206473ef8
give urllib.urlopen a context parameter ( closes #22927 )
2014-11-23 20:55:24 -06:00
Benjamin Peterson
31aa69ead5
allow hostname to be passed to SSLContext even if OpenSSL doesn't support SNI ( closes #22921 )
...
Patch from Donald Stufft.
2014-11-23 20:13:31 -06:00
Benjamin Peterson
88922db775
fix this test when sizeof(long) < sizeof(size_t)
2014-11-23 13:17:57 -06:00
Benjamin Peterson
b0609ec8f3
remove py3k warning guard
2014-11-23 11:52:46 -06:00
Benjamin Peterson
fcfb18ee2b
allow passing cert/ssl information to urllib2.urlopen and httplib.HTTPSConnection
...
This is basically a backport of issues #9003 and #22366 .
2014-11-23 11:42:45 -06:00
Antoine Pitrou
b9a4501179
Issue #21963 : backout issue #1856 patch (avoid crashes and lockups when
...
daemon threads run while the interpreter is shutting down; instead,
these threads are now killed when they try to take the GIL), as it seems
to break some existing code.
2014-11-21 02:04:21 +01:00
Serhiy Storchaka
f9b2aa2efe
Issue #22193 : Fixed integer overflow error in sys.getsizeof().
...
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:21:01 +02:00
Donald Stufft
f44b9c4ddc
Define a __hash__ to quiet down a -3 warning
2014-11-11 12:32:57 -05:00
Donald Stufft
8aaff54db3
Implement PEP 477 - Backport ensurepip (PEP 453) to 2.7
...
* Backports ensurepip to the 2.7 branch
* Backports some of the improved documentation to the 2.7 branch.
* Adds a private backport of the 3.x mock library as test._mock_backport
to enable saner testing of ensurepip.
Key Differences from 3.x:
* Ensurepip does not have any Makefile integration, specifically
it is not ran by default in the Makefile.
* There is no venv module in 2.7, so downstream distributors can
completely disable ensurepip, ideally with a message redirecting
to the correct way to install pip.
* To match the ``python`` command in 2.7, ensurepip will install
the unversioned ``pip`` command as well.
* No-op and hide --default-pip and add --no-default-pip to restore
the 3.x behavor on 2.7.
2014-11-11 10:24:11 -05:00
Serhiy Storchaka
e927757df6
Issue #12728 : Different Unicode characters having the same uppercase but
...
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:37:02 +02:00
Serhiy Storchaka
c4d2760a6a
Silence the failure of test_pyclbr after adding a property in sre_parse
...
(issue #814253 ).
2014-11-07 22:31:54 +02:00
Serhiy Storchaka
15ea870e29
Issues #814253 , #9179 : Group references and conditional group references now
...
work in lookbehind assertions in regular expressions.
2014-11-07 21:43:45 +02:00
Serhiy Storchaka
b4f3d80d4f
Backported tests for issue #22406 .
2014-11-07 14:07:43 +02:00
Serhiy Storchaka
4535b11147
Issue #17293 : uuid.getnode() now determines MAC address on AIX using netstat.
...
Based on patch by Aivars Kalvāns.
2014-11-07 12:19:23 +02:00
Georg Brandl
6246f2a103
#22650 : test suite: load Unicode test data files from www.pythontest.net
2014-11-06 14:37:49 +01:00
Benjamin Peterson
9580510958
use pythontest.net for url fragment test
2014-11-05 11:27:14 -05:00
Victor Stinner
57b00ed0a0
Issue #19753 : Fix test_gdb on SystemZ buildbot, ignore warnings
2014-11-05 15:07:18 +01:00
Antoine Pitrou
06c14976dc
Issue #22773 : fix failing test with old readline versions due to issue #19884 .
2014-11-04 14:52:10 +01:00
Benjamin Peterson
04439fd5ee
test that keyfile can be None
2014-11-03 21:05:01 -05:00
Serhiy Storchaka
186c5f07e6
Issue #22775 : Fixed unpickling of Cookie.SimpleCookie with protocol 2.
...
Patch by Tim Graham.
2014-11-02 22:35:47 +02:00
Ezio Melotti
009352aefd
#22751 : fix test___all__ warning about modified environment in the tests. Patch by Michael Cetrulo.
2014-11-02 19:08:35 +02:00
Ned Deily
33db23f53c
Issue #22770 : Prevent some Tk segfaults on OS X when running gui tests.
...
When running tests in subprocesses with the regrtest -j option, a bug
in Cocoa Tk can result in a Tcl segfault. Avoid the problem by forcing
Tk to fully initialize as an OS X gui process before destroying the
Tcl instance and creating another. (Original patch by Serhiy Storchaka)
2014-11-01 19:26:45 -07:00
Serhiy Storchaka
e9e54ae222
Issue #17381 : Fixed ranges handling in case-insensitive regular expressions.
2014-10-31 13:53:21 +02:00
Serhiy Storchaka
d4c7290368
Issue #22410 : Module level functions in the re module now cache compiled
...
locale-dependent regular expressions taking into account the locale.
2014-10-31 00:53:19 +02:00
Terry Jan Reedy
0daddbdb7a
Issue #20155 : Fix non-buildbot test failure on Windows. Patch by Claudiu Popa,
...
revised by R. David Murray.
2014-10-18 17:10:02 -04:00
R David Murray
af26c15110
#9351 : set_defaults on subparser is no longer ignored if set on parent.
...
Before, if a default was set on the parent parser, any default for that
variable set via set_defaults on a subparser would be ignored. Now
the subparser set_defaults is honored.
Patch by Jyrki Pullianinen.
2014-10-17 20:07:08 -04:00
Serhiy Storchaka
20c049df37
Issue #21855 : Fixed the decimal module in unicode disabled build.
2014-10-14 21:10:56 +03:00
Charles-François Natali
b29ab4a379
Merge.
2014-10-13 18:42:49 +01:00
Charles-François Natali
977c424ef6
Issue #22435 : Fix a file descriptor leak when SocketServer bind fails.
2014-10-13 18:39:34 +01:00
Serhiy Storchaka
fbddffad2f
Fixed the test of issue #13664 on platforms without unicode filenames support.
2014-10-13 10:33:32 +03:00
Terry Jan Reedy
c0dc65ef8d
Change deprecated Exception.message to Exception.args-[0] where the use of
...
.message is not an essential part of the test.
2014-10-12 22:00:10 -04:00
Serhiy Storchaka
54edfb3eef
Issue #13664 : GzipFile now supports non-ascii Unicode filenames.
2014-10-12 22:23:28 +03:00
R David Murray
d7f44e2370
#11973 : add test for previously fixed kevent signed/unsigned bug.
...
Patch by David Naylor.
2014-10-12 12:42:58 -04:00
Serhiy Storchaka
80f0c824ba
Fixed and optimized a test of issue #22526 .
2014-10-12 17:13:06 +03:00
Antoine Pitrou
d0a5e9bb4a
Issue #22604 : Fix assertion error in debug mode when dividing a complex number by (nan+0j).
2014-10-10 23:49:32 +02:00
Petri Lehtinen
f85a856fb0
Issue #11694 : Raise ConversionError in xdrlib as documented
2014-10-10 21:11:34 +03:00
Benjamin Peterson
3d1f2d3b52
make _socket.socket weakrefable ( closes #22569 )
...
Patch from Alex Gaynor.
2014-10-06 14:38:20 -04:00
Serhiy Storchaka
77149a1c61
Issue #21951 : Temporary skip crashing test_user_command on AIX.
2014-07-30 10:58:34 +03:00
Victor Stinner
2af8d2f698
Issue #22023 : Fix %S, %R and %V formats of PyUnicode_FromFormat().
2014-07-30 00:39:05 +02:00
Robert Jordens
af09c774e5
Issue #21591 : add test for qualified exec in tuple form.
2014-07-29 17:24:24 +02:00
Victor Stinner
0a649c7bb1
Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
...
on closed socket.
2014-07-26 14:52:55 +02:00
Charles-François Natali
5a1427c8a3
Issue #19875 : Fix random test_getsockaddrarg() failure.
2014-07-26 13:44:50 +01:00
Victor Stinner
fe9ebe4f4f
Issue #16133 : The asynchat.async_chat.handle_read() method now ignores
...
socket.error() exceptions with blocking I/O errors: EAGAIN, EALREADY,
EINPROGRESS, or EWOULDBLOCK. Initial patch written by Xavier de Gaye.
2014-07-24 19:15:00 +02:00
Victor Stinner
63a474788a
Issue #19884 : readline: Disable the meta modifier key if stdout is not a
...
terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence
is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit
characters.
2014-07-24 12:22:24 +02:00
Serhiy Storchaka
7cc3b0aefb
Backout 308f3c1e36d3. This change (issue21044) does not need to be merged on
...
2.7, as the os.fdopen sets the name attribute to '<fdopen>' and not to the fd.
2014-07-22 10:39:59 +03:00
Antoine Pitrou
4e64d8768f
Issue #21976 : Fix test_ssl to accept LibreSSL version strings.
...
Thanks to William Orr.
2014-07-21 18:35:01 -04:00
Serhiy Storchaka
e7829bdf12
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
...
attribute. Based on patch by Martin Panter.
2014-07-16 23:58:12 +03:00
Serhiy Storchaka
fdfe9fce8c
Add helpers for testing unicode disabled builds.
2014-07-16 23:50:37 +03:00
Ned Deily
c89376292e
Issue #21323 : Fix CGIHTTPServer to again handle scripts in CGI subdirectories,
...
broken by the fix for security issue #19435 . Patch by Zach Byrne.
2014-07-12 22:01:15 -07:00
Serhiy Storchaka
5fc570fc7e
Issue #21881 : Just omit tests for platform-specific NaN representation in test_tcl.
2014-07-07 14:47:17 +03:00
Serhiy Storchaka
668af7e955
Issue #21881 : Be more tolerant in test_tcl to not parsable by float() NaN
...
representations (on mips and m68k platforms).
2014-07-07 13:44:11 +03:00
Zachary Ware
6690eed48b
Issue #21151 : Fixed a segfault in the _winreg module.
...
When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx,
PyMem_DEL was called on an uninitialized buffer. Patch by John Ehresman.
(Also an incidental typo fix in a comment in test_winreg)
2014-07-03 10:57:44 -05:00
Berker Peksag
cf0a706c15
Issue #19870 : BaseCookie now parses 'secure' and 'httponly' flags.
...
Backport of issue #16611 .
2014-07-02 10:48:27 +03:00
Benjamin Peterson
bb4d3527cf
add a test for access errors from OpenKey ( closes #21871 )
...
Patch from Vladimir Iofik.
2014-06-29 13:02:12 -07:00
Benjamin Peterson
4becf85d54
don't allow unicode into type_map on Windows ( closes #21652 )
...
Patch from Vladimir Iofik.
2014-06-29 12:58:16 -07:00
Jesus Cea
fd3ba7b261
Closes #11279 : test_posix and lack of "id -G" support - less noise required? (Solaris)
2014-06-28 18:39:01 +02:00
Ned Deily
1f70b878c4
Issue #21811 : Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
2014-06-25 13:33:57 -07:00
Raymond Hettinger
58ad24512a
Issue #19145 : Fix handling of negative values for a "times" keyword argument to itertools.repeat()>
...
(Patch contributed by Vajrasky Kok.)
2014-06-24 21:53:45 -07:00
R David Murray
3eb76fc10b
#20155 : use fake HTTP method names so windows doesn't hang the tests.
...
Windows was seeing the 'GET' generated by these tests as invalid and forcibly
closing the socket, causing the test to fail.
Patch by Jeff Allen.
2014-06-24 16:49:24 -04:00
Benjamin Peterson
550b945fd6
avoid overflow with large buffer sizes and/or offsets ( closes #21831 )
2014-06-23 20:12:27 -07:00
Benjamin Peterson
c459755df2
adjust zipfile tests for splitdrive improvements
2014-06-22 20:26:07 -07:00
Benjamin Peterson
3bef935512
fix ntpath.join on UNC-style paths by backporting py3k's splitdrive ( closes #21672 )
2014-06-22 19:07:38 -07:00
Raymond Hettinger
4575010943
Issue 21635: Fix caching in difflib.SequenceMatcher.get_matching_blocks().
2014-06-21 11:27:36 -07:00
Charles-François Natali
94919a44a2
Fix test_pydoc failure introduced by e89c39125892. Patch by Berker Peksag.
2014-06-20 22:57:19 +01:00
Terry Jan Reedy
729981861a
Issue #21768 : fix type in test_pydoc, patch by Claudiu Popa.
2014-06-20 14:59:07 -04:00
Benjamin Peterson
c0bc4eff50
avoid crashes and lockups from daemon threads during interpreter shutdown ( #1856 )
2014-06-16 19:39:18 -07:00
Benjamin Peterson
8d24d77c63
url unquote the path before checking if it refers to a CGI script ( closes #21766 )
2014-06-14 18:36:29 -07:00
Serhiy Storchaka
05b0a1be37
Issue #21310 : Fixed possible resource leak in failed open().
2014-06-09 13:32:08 +03:00
Benjamin Peterson
75a55c3275
make sure the builtin help function doesn't fail when sys.stdin is not a valid file ( closes #11709 )
...
Original patch by Amaury Forgeot d'Arc with a test by bdettmer.
2014-06-07 20:14:26 -07:00
Benjamin Peterson
c3e1e90221
don't remove self from example code in the HTML output ( closes #13223 )
...
Patch by Víctor Terrón.
2014-06-07 16:44:00 -07:00
Benjamin Peterson
93e51aac54
allow the keyword else immediately after (no space) an integer ( closes #21642 )
2014-06-07 12:36:39 -07:00
Zachary Ware
9ce635f7bd
Issue #18492 : Allow all resources when tests are not run by regrtest.py.
...
This changeset also includes cleanup allowed by this behavior change.
2014-06-02 16:01:16 -05:00
Serhiy Storchaka
79fa98af9e
Issue #19656 : Running Python with the -3 option now also warns about
...
non-ascii bytes literals.
2014-06-01 22:13:39 +03:00
Benjamin Peterson
48f2e99808
backport hashlib.pbkdf2_hmac per PEP 466 ( closes #21304 )
...
Backport by Alex Gaynor.
2014-05-31 13:26:22 -07:00
Serhiy Storchaka
2a0220b18a
Issue #21552 : Fixed possible integer overflow of too long string lengths in
...
the Tkinter module on 64-bit platforms.
2014-05-30 14:23:52 +03:00
Serhiy Storchaka
d11e8b6af7
Add tests for getint, getdouble and getboolean methods of the tkapp object.
2014-05-30 14:07:20 +03:00
Gregory P. Smith
0344a0643d
Fix issue #14315 : The zipfile module now ignores extra fields in the central
...
directory that are too short to be parsed instead of letting a struct.unpack
error bubble up as this "bad data" appears in many real world zip files in the
wild and is ignored by other zip tools.
2014-05-29 23:41:52 -07:00
Serhiy Storchaka
49b2086a2e
Issue #21493 : Added test for ntpath.expanduser(). Original patch by
...
Claudiu Popa.
2014-05-28 18:11:08 +03:00
Raymond Hettinger
fb8899a597
Issue #21481 : Teach argparse equality tests to return NotImplemented when comparing to unknown types.
2014-05-26 00:40:09 -07:00
Raymond Hettinger
f643b9a9c7
Issue 8743: Improve interoperability between sets and the collections.Set abstract base class.
2014-05-25 22:13:41 -07:00
Raymond Hettinger
92df7529cb
Issue 13355: Make random.triangular degrade gracefully when low == high.
2014-05-25 17:40:25 -07:00
Serhiy Storchaka
1f94efc626
Issue #19925 : Added tests for the spwd module. Original patch by Vajrasky Kok.
2014-05-25 16:21:32 +03:00
Ned Deily
47e4b0bedb
Issue #18604 : Skip the Tk instantiation test on OS X because it can
...
cause GUI tests to segfault in Cocoa Tk when run under regrtest -j
(multiple threads running subprocesses).
2014-05-23 21:28:02 -07:00
Antoine Pitrou
ab4a69158b
Issue #21523 : Fix over-pessimistic computation of the stack effect of some opcodes in the compiler.
...
This also fixes a quadratic compilation time issue noticeable when compiling
code with a large number of "and" and "or" operators.
2014-05-23 11:46:03 +02:00
Benjamin Peterson
5918f8f612
'sunos' not 'solaris
2014-05-17 16:33:59 -07:00
Benjamin Peterson
15773c893f
just skip this test on Solaris
2014-05-17 16:07:53 -07:00
Benjamin Peterson
6800d93eec
some platforms apparently don't care about fdopen'ing with a different mode
2014-05-17 15:50:38 -07:00
Senthil Kumaran
36f28f7ae8
Backport Fix for Issue #7776 : Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel().
...
Patch by Nikolaus Rath.
2014-05-16 18:51:46 -07:00
Benjamin Peterson
3428620b2b
this file now has utf-8 chars
2014-05-11 16:16:27 -07:00
Benjamin Peterson
629026aecc
backport hmac.compare_digest to partially implement PEP 466 ( closes #21306 )
...
Backport from Alex Gaynor.
2014-05-11 16:11:44 -07:00
Antoine Pitrou
b0acc1b0a3
Issue #21350 : Fix file.writelines() to accept arbitrary buffer objects, as advertised.
...
Patch by Brian Kearns.
2014-05-08 19:26:04 +02:00
Zachary Ware
2460dc880f
Issue #18604 : Consolidated checks for GUI availability.
...
test_support._is_gui_available is now defined the same way on every
platform, and now includes the Windows-specific check that had been in the
Windows version of _is_gui_available and the OSX-specific check that was
in runtktests.check_tk_availability. Also, every platform checks whether
Tk can be instantiated (if the platform-specific checks passed).
2014-05-02 10:33:49 -05:00
Antoine Pitrou
3ec903fce4
Issue #21321 : itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
...
Patch by Anton Afanasyev.
2014-04-29 12:13:46 +02:00
Tim Golden
3c5816f5e6
Issue #9291 Do not attempt to re-encode mimetype data read from registry in ANSI mode. Initial patches by Dmitry Jemerov & Vladimir Iofik
2014-04-27 16:36:47 +01:00
Terry Jan Reedy
807c9da951
Issue #18944 : backport typo fix
2014-04-26 13:55:59 -04:00
Tim Golden
3c603f3618
Issue21349 Passing a memoryview to _winreg.SetValueEx now correctly raises a TypeError where it previously crashed the interpreter. Patch by Brian Kearns
2014-04-26 15:47:08 +01:00
Zachary Ware
4e0df17bd7
Issue #21346 : Fix typos in test_itertools. Patch by Brian Kearns.
2014-04-24 13:20:27 -05:00
Andrew Kuchling
cb4069c329
#1704474 : mark refleak test as specific to CPython
...
Patch by Christian Hudon.
2014-04-15 16:44:43 -04:00
Benjamin Peterson
5c863bf938
when an exception is raised in fdopen, never close the fd (changing on my mind on #21191 )
2014-04-14 19:45:46 -04:00
Eric V. Smith
9a55cd8857
Issue #12546 : Allow \x00 as a fill character for builtin type __format__ methods.
2014-04-14 11:22:33 -04:00
Benjamin Peterson
02ab7a84ef
make sure fdopen always closes the fd in error cases ( closes #21191 )
2014-04-09 15:40:18 -04:00
Benjamin Peterson
3c0027b721
use with statement
2014-04-04 13:59:33 -04:00
Benjamin Peterson
c2dafe60bc
explicitly close file object ( #21128 )
2014-04-04 13:56:44 -04:00
Benjamin Peterson
7b26a5a32d
properly explicitly close file ( #21128 )
2014-04-04 13:56:26 -04:00
Benjamin Peterson
d7ffb77e6f
make temporary read-only files writable, so rmtree can remove them ( #21128 )
2014-04-04 13:55:56 -04:00
Benjamin Peterson
352eb4f432
properly close files in test_zipfile ( #20887 )
...
Patch by Matti Picus.
2014-04-03 10:31:25 -04:00
Benjamin Peterson
07681001c9
make sure to test UnicodeEncodeError, too
2014-04-02 15:51:38 -04:00
Benjamin Peterson
c4e6e0a279
bail in unicode error's __str__ methods if the objects are not properly initialized ( closes #21134 )
2014-04-02 12:15:06 -04:00
Benjamin Peterson
38534381f3
use https docs url ( #21115 )
2014-03-31 13:44:53 -04:00
Benjamin Peterson
d42f60ed81
fix overflow detection of strop.expandtabs
2014-03-30 20:09:44 -04:00
Ned Deily
b693e9fc5b
Issue #6676 : Ensure a meaningful exception is raised when attempting
...
to parse more than one XML document per pyexpat xmlparser instance.
(Original patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with
suggested wording by David Gutteridge)
2014-03-27 16:38:32 -07:00
Ned Deily
c727533cf5
Issue #20939 : Use www.example.com instead of www.python.org to avoid test
...
failures when ssl is not present.
2014-03-26 23:25:02 -07:00
Victor Stinner
988bc970eb
Issue #21038 : Cleanup test_epoll.py
...
Remove useless test and unused variables. Initial patch by Andreas Schwab.
2014-03-25 12:53:47 +01:00
Victor Stinner
367f5d379c
Issue #21058 : Fix a leak of file descriptor in tempfile.NamedTemporaryFile(),
...
close the file descriptor if os.fdopen() fails
2014-03-25 09:08:16 +01:00
Ned Deily
a146df8dd6
Issue #20939 : Fix test_geturl failure in test_urllibnet due to
...
new redirect of http://www.python.org/ to https://www.python.org .
2014-03-15 13:14:15 -07:00
Benjamin Peterson
ae80f450a6
use ssl.PROTOCOL_SSLv23 for maximum compatibility ( closes #20896 )
2014-03-12 18:05:53 -05:00
Serhiy Storchaka
e50fe4c9eb
Issue #20283 : RE pattern methods now accept the string keyword parameters
...
as documented. The pattern and source keyword parameters are left as
deprecated aliases.
2014-03-06 12:24:29 +02:00
Serhiy Storchaka
fd48a56b27
Correct and improve comments in test_fileinput ( closes #20501 ).
...
Thanks Vajrasky Kok and Zachary Ware.
2014-03-03 21:16:27 +02:00
Benjamin Peterson
bde1cfb0cd
fix test_posix.test_initgroups to work without supplemental groups ( closes #20249 )
2014-03-01 19:14:12 -05:00
Terry Jan Reedy
44fad467b9
Issue #20567 : Delete class attribute gui widgets in idle tests.
...
Code patch by Serhiy Storchaka
2014-02-27 18:47:23 -05:00
Serhiy Storchaka
68b8a94c91
Issue #20501 : fileinput module no longer reads whole file into memory when using
...
fileinput.hook_encoded.
2014-02-26 20:59:08 +02:00
Terry Jan Reedy
bd7cf3ade3
Issue #9974 : When untokenizing, use row info to insert backslash+newline.
...
Original patches by A. Kuchling and G. Rees (#12691 ).
2014-02-23 23:32:59 -05:00
Antoine Pitrou
aa73ea0408
Issue #20743 : Fix a reference leak in test_tcl.
2014-02-23 19:39:06 +01:00
Benjamin Peterson
0b1faeab6f
update logo url ( #20695 )
2014-02-19 22:51:08 -05:00
Serhiy Storchaka
2ac9d31108
Issue #6815 : os.path.expandvars() now supports non-ASCII Unicode environment
...
variables names and values.
2014-02-19 23:27:37 +02:00
Zachary Ware
c77d4ba85b
Issue #20510 : Confirm that the code attribute of the SystemExit
...
exception raised by sys.exit is None when no code is given.
As suggested by Serhiy Storchaka.
2014-02-19 10:43:13 -06:00
Zachary Ware
dd091d7531
Issue #20510 : Rewrote test_exit in test_sys to match existing comments
...
and to modernize. Initial patch by Gareth Rees.
2014-02-18 08:36:14 -06:00
Terry Jan Reedy
6858f00dab
Issue #8478 : Untokenizer.compat now processes first token from iterator input.
...
Patch based on lines from Georg Brandl, Eric Snow, and Gareth Rees.
2014-02-17 23:12:07 -05:00
Terry Jan Reedy
7751a34400
Untokenize: An logically incorrect assert tested user input validity.
...
Replace it with correct logic that raises ValueError for bad input.
Issues #8478 and #12691 reported the incorrect logic.
Add an Untokenize test case and an initial test method.
2014-02-17 16:45:38 -05:00
Benjamin Peterson
5503579db6
backout 369bf9fbaeff
2014-02-16 14:51:17 -05:00
Benjamin Peterson
f387e96768
remove tests for #19081
2014-02-16 14:48:26 -05:00
Benjamin Peterson
e9aab0fb98
backout #19081 to fix #20621
2014-02-16 14:20:14 -05:00
Ned Deily
e789a1d866
Issue #20605 : Make test_socket getaddrinfo OS X segfault test more robust.
2014-02-13 22:49:30 -08:00
Serhiy Storchaka
1d19f97eed
Issue #17671 : Fixed a crash when use non-initialized io.BufferedRWPair.
...
Based on patch by Stephen Tu.
2014-02-12 10:52:07 +02:00
Serhiy Storchaka
a4b9c878e4
Issue #19856 : shutil.move() failed to move a directory to other directory
...
on Windows if source name ends with os.altsep.
2014-02-11 10:30:06 +02:00
Serhiy Storchaka
79b6f17d70
Issue #20549 : Use specific asserts in mailbox, smtplib and poplib tests.
2014-02-08 15:05:53 +02:00
Serhiy Storchaka
528bed8e4a
Issue #20555 : Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests.
2014-02-08 14:49:55 +02:00
Serhiy Storchaka
708a5ea964
Issue #20546 : Use specific asserts in int tests.
2014-02-08 14:28:20 +02:00
Serhiy Storchaka
76249ea4a7
Issue #20532 : Tests which use _testcapi now are marked as CPython only.
2014-02-07 10:06:05 +02:00
Serhiy Storchaka
6a036793b6
Issue #20520 : Fixed readline test in test_codecs.
2014-02-06 09:26:32 +02:00
Serhiy Storchaka
cfc2c7bb86
Issue #19920 : Added tests for TarFile.list(). Based on patch by Vajrasky Kok.
2014-02-05 20:55:13 +02:00
Serhiy Storchaka
dd9d64eb53
Issue #20498 : Fixed io.StringIO tests for newline='\n'. Added new tests.
2014-02-05 13:41:38 +02:00
Serhiy Storchaka
90ecc00183
Skip expr* tests for large integers for Tcl <8.5.
...
The '**' operator is available only since 8.5 and in any case such large
integers are not supported on Tcl <8.5.
2014-02-03 22:30:22 +02:00
Antoine Pitrou
f581411255
Issue #20426 : When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache.
2014-02-03 20:59:59 +01:00
Serhiy Storchaka
ccffb25c54
Issue #20368 : The null character now correctly passed from Tcl to Python (in
...
unicode strings only). Improved error handling in variables-related commands.
2014-02-03 21:23:46 +02:00
Serhiy Storchaka
d2eff237a6
Issue #20368 : Add tests for Tkinter methods exprstring(), exprdouble(),
...
exprlong() and exprboolean().
2014-02-03 20:41:04 +02:00
Antoine Pitrou
c06634acfc
Issue #20435 : Fix _pyio.StringIO.getvalue() to take into account newline translation settings.
2014-02-02 23:37:29 +01:00
Serhiy Storchaka
15b67d7d5b
Issue #19320 : Fixed split/splitlist tests in test_tcl for Tcl 8.5.0-8.5.5.
2014-02-02 23:04:06 +02:00
Ezio Melotti
5a88853bdc
#20288 : fix handling of invalid numeric charrefs in HTMLParser.
2014-02-01 21:20:22 +02:00
Serhiy Storchaka
47cb38cdcc
Backported a test for lone surrogates support in io.StringIO.
2014-01-29 11:49:13 +02:00
Gregory P. Smith
9ca520a09c
Remove unneeded use of globals() and locals() in test on imports
...
introduced with the issue19081 tests.
2014-01-28 00:29:46 -08:00
Gregory P. Smith
1a47955255
Refactor the new test for issue19081 to exec import statements into a
...
test_ns dict instead of the actual globals() and locals(). Suggested
after review by Thomas Wouters.
2014-01-27 22:06:51 -08:00
Serhiy Storchaka
31f5121275
Issue #19456 : ntpath.join() now joins relative paths correctly when a drive
...
is present.
2014-01-27 23:14:51 +02:00
Gregory P. Smith
027ab39014
Issue #19081 : Remove the zipimporter.files reference as the zip TOC
...
caches are module global in the zip_directory_cache. When it is
updated due to a changed zip file, all zipimporter instances need to
see the same updates TOC cache. This fixes the bug for the overlooked
submodule import case from the earlier round of changes. Includes
tests that would fail otherwise.
It also refactors zipimporter_init in the process to make it a bit
easier to read and understand. Less reuse of the same variable for
multiple purposes and the local path buffer is malloc'ed instead
of consuming a large MAXPATHLEN+2 chunk stack space.
2014-01-27 00:15:10 -08:00
Serhiy Storchaka
30d68c66e3
Issue #19990 : Added tests for the imghdr module.
...
Based on patch by Claudiu Popa.
2014-01-26 23:48:20 +02:00
Serhiy Storchaka
2403a787b9
Issue #8260 : The read(), readline() and readlines() methods of
...
codecs.StreamReader returned incomplete data when were called after
readline() or read(size). Based on patch by Amaury Forgeot d'Arc.
2014-01-26 19:20:24 +02:00
Serhiy Storchaka
eb7ef94166
Third attempt to fix test_user_command on OpenSolaris.
2014-01-23 16:08:35 +02:00
Serhiy Storchaka
dc97667254
Other attempt to fix test_user_command on OpenSolaris.
2014-01-23 14:38:44 +02:00
Serhiy Storchaka
83515ecf42
Try to fix test_user_command on OpenSolaris where floats can have different
...
string representation in Tcl and Python.
2014-01-23 11:03:02 +02:00
Serhiy Storchaka
29d8e856b4
Added test_user_command in test_tcl.
...
It tests the convertion Tcl values to Python values when Tcl calls a command
implemented on Python. Currently all values are passed as strings.
2014-01-23 09:42:46 +02:00
Stefan Krah
70fdd79c92
Fix test failures --without-threads.
2014-01-22 13:18:09 +01:00
Florent Xicluna
edfd9addf6
Issue #17825 : Cursor ^ is correctly positioned for SyntaxError and IndentationError.
2014-01-22 01:33:59 +01:00
Stefan Krah
70df667dfe
Issue #20246 : Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
2014-01-21 23:05:52 +01:00
Serhiy Storchaka
49259359ee
Issue #20262 : Warnings are raised now when duplicate names are added in the
...
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:57:09 +02:00
Serhiy Storchaka
326b5ab05a
Issue #20270 : urllib and urlparse now support empty ports.
2014-01-18 18:30:09 +02:00
Serhiy Storchaka
7a278da4ee
Issue #20243 : TarFile no longer raise ReadError when opened in write mode.
2014-01-18 16:14:00 +02:00
Serhiy Storchaka
cdf1ebd8fe
Backported test for issue #20238 .
2014-01-18 15:54:32 +02:00
Serhiy Storchaka
75ba21a77d
Issue #20245 : The open functions in the tarfile module now correctly handle empty mode.
2014-01-18 15:35:19 +02:00
Serhiy Storchaka
af080876dc
Issue #20086 : Restored the use of locale-independing mapping instead of
...
locale-depending str.lower() in locale.normalize().
2014-01-17 09:27:56 +02:00
Serhiy Storchaka
e0ed2d75c8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.
2014-01-16 18:59:17 +02:00
Benjamin Peterson
d93d6332ee
add test for #20251
2014-01-14 00:27:42 -05:00
Benjamin Peterson
28cf368c1b
complain when nbytes > buflen to fix possible buffer overflow ( closes #20246 )
2014-01-13 22:59:38 -05:00
Serhiy Storchaka
d804f53679
Backported test for the open of non-existent tarfile.
2014-01-13 19:08:51 +02:00
Serhiy Storchaka
e198692c39
Issue #20138 : Backport tests for handling non-ASCII URLs in the
...
wsgiref.application_uri() and wsgiref.request_uri() functions.
2014-01-12 12:11:47 +02:00
Senthil Kumaran
fa6cecbc68
Adding test coverage for cgi.FieldStorage based on the scenario mentioned in issue #19097
2014-01-11 22:16:55 -08:00
Serhiy Storchaka
ee105dcc62
Fixed test_tempfilepager in test_pydoc on Windows.
...
Filename such as r'c:\users\db3l\appdata\local\temp\tmph3vkvf' contains '\t'
which is interpreted by ast.literal_eval() as a tabulation.
2014-01-10 22:43:03 +02:00
Serhiy Storchaka
664ebb03af
Issue #20086 : Output more details when test_getsetlocale_issue1813 is failed.
2014-01-10 15:34:51 +02:00
Serhiy Storchaka
0f11d0f778
Issue #19804 : The test_find_mac test in test_uuid is now skipped if the
...
ifconfig executable is not available.
2014-01-10 15:05:27 +02:00
Serhiy Storchaka
c9da0893d3
Issue #19886 : Use better estimated memory requirements for bigmem tests.
...
Incorrect requirements can cause memory swapping.
2014-01-10 13:36:56 +02:00
Serhiy Storchaka
9f8621fa7d
Issue #13107 : argparse and optparse no longer raises an exception when output
...
a help on environment with too small COLUMNS. Based on patch by
Elazar Gershuni.
2014-01-09 23:13:48 +02:00
Antoine Pitrou
3b2afbbf88
Issue #20207 : Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.
2014-01-09 19:52:12 +01:00
Benjamin Peterson
27b029bd00
clear zip stat cache after each ref leak run
2014-01-09 11:10:30 -06:00
Gregory P. Smith
f5dee4ddbd
normalize whitespace from prior issue19081 fix commit.
2014-01-06 09:51:32 -08:00
Gregory P. Smith
b48c5d5107
Fixes issue19081: When a zipimport .zip file in sys.path being imported
...
from is modified during the lifetime of the Python process after
zipimport has already opened and cached the zip's table of contents
it now fstat's the file after opening it upon every attempt to access
anything within and will re-read the table of contents if the .zip file
inode, size or mtime have changed.
It would've been nicer to hold any .zip file used by zipimport open for the
duration of the process but that would be more invasive and add an additional
open file descriptor to all zipimport using processes. It also would likely
not fix the problem on Windows due to different filesystem semantics.
2014-01-06 09:46:46 -08:00
R David Murray
984f630f0a
#1065986 : Make pydoc handle unicode strings.
...
Patch by Akira Kitada.
2014-01-05 12:35:59 -05:00
R David Murray
1d2ef64df6
#16039/#20118: temporarily skip failing imaplib SSL test.
...
The fix the test is testing prevents a DOS attack, and the failure
mode will also prevent the DOS attack, so for now skip the test.
Either the test or the code does need fixing, however.
2014-01-03 17:26:21 -05:00
R David Murray
020d7c379a
closes 16039: CVE-2013-1752: limit line length in imaplib readline calls.
2014-01-03 13:59:22 -05:00
Benjamin Peterson
22d9ee7e17
complain if the codec doesn't return unicode
2013-12-28 10:33:58 -06:00
Antoine Pitrou
63cc99d9a6
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:26:33 +01:00
Serhiy Storchaka
e891de3cbb
Fixed the wave module testing on big-endian platforms.
...
array.fromfile() works only with file objects, not io.FileIO instances.
2013-12-28 10:18:44 +02:00
Serhiy Storchaka
d551b28571
Issue #20027 : Fixed locale aliases for devanagari locales.
2013-12-26 21:20:46 +02:00
Serhiy Storchaka
5542b15d25
Issue #19320 : test_tcl no longer fails when wantobjects is false.
2013-12-25 17:28:50 +02:00
Serhiy Storchaka
18ab51d2ee
Merge heads
2013-12-19 22:31:23 +02:00
Serhiy Storchaka
80b76bf0f9
Don't use sebTest() in tests for issue #5815 .
2013-12-19 22:28:25 +02:00
Zachary Ware
1875536480
Issue #19683 : Removed empty tests from test_minidom.
...
Initial patch by Ajitesh Gupta.
2013-12-19 13:44:19 -06:00
Serhiy Storchaka
bd78986279
Issue #5815 : Fixed support for locales with modifiers. Fixed support for
...
locale encodings with hyphens.
2013-12-19 21:21:06 +02:00
Serhiy Storchaka
0c221beed4
Issue #18829 : csv.Dialect() now checks type for delimiter, escapechar and
...
quotechar fields. Original patch by Vajrasky Kok.
2013-12-19 16:26:56 +02:00
Antoine Pitrou
bd4b667ea4
Issue #20006 : Fix sporadic failures in test_weakset.
2013-12-18 00:28:36 +01:00
Serhiy Storchaka
c97f5ede8f
Issue #20007 : HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:49:48 +02:00
Serhiy Storchaka
84e7e5f40e
Skip test for issue #17976 if /dev/null is not available.
2013-12-17 14:53:32 +02:00
Serhiy Storchaka
6d562319d2
Issue #17976 : Fixed potential problem with file.write() not detecting IO error
...
by inspecting the return value of fwrite(). Based on patches by Jaakko Moisio
and test by Victor Stinner.
2013-12-17 14:40:06 +02:00
Zachary Ware
51e90bcee5
Issue #19987 : Re-write test_alias_fallback in test_winsound to have two
...
acceptable outcomes: success or RuntimeError. Without being able to
actually hear whether a sound was played, either one could be right, but
any other error would be a failure.
2013-12-16 08:58:10 -06:00
Serhiy Storchaka
dd5a46c696
Issue #19912 : Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more returns illegal result for paths with redundant slashes.
* splitunc() now correctly processes the u'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Added new tests for splitunc().
2013-12-16 15:15:29 +02:00
Serhiy Storchaka
d1a61dcc65
Issue #19623 : Fixed writing to unseekable files in the aifc module.
...
Fixed writing 'ulaw' (lower case) compressed AIFC files.
2013-12-14 20:34:33 +02:00
Serhiy Storchaka
a92cc91ee6
Issue #17919 : Fixed integer overflow in the eventmask parameter.
2013-12-14 19:11:04 +02:00
Serhiy Storchaka
17f22c9281
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:09:05 +02:00
Victor Stinner
66c6e9dcb4
Issue #14432 : Generator now clears the borrowed reference to the thread state
...
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:37:09 +01:00
Zachary Ware
b06231a9c9
Issue #19572 : Replace a return that shouldn't have been removed from test_os.
...
This should fix the test_os failure on the AMD64 Windows 7 buildbot.
2013-12-10 16:06:46 -06:00
Zachary Ware
227c01a194
Issue #19928 : Fix test on Windows
2013-12-10 14:14:28 -06:00
Zachary Ware
1f70221b86
Issue #19572 : More silently skipped tests explicitly skipped.
2013-12-10 14:09:20 -06:00
Nadeem Vawda
284164b476
Skip test for #19878 on Windows.
2013-12-10 17:23:00 +01:00
Serhiy Storchaka
95d721927a
Issue #19928 : Implemented a test for repr() of cell objects.
2013-12-10 10:20:11 +02:00
Serhiy Storchaka
5493d5ea2a
Issue #19099 : The struct module now supports Unicode format strings.
2013-12-08 17:44:50 +02:00
Nadeem Vawda
337c50b8cb
Closes #19878 : Fix segfault in bz2 module.
...
Initial patch by Vajrasky Kok.
2013-12-08 15:31:50 +01:00
Serhiy Storchaka
7c573857c7
Issue #16373 : Prevent infinite recursion for ABC Set class comparisons.
2013-12-06 23:23:15 +02:00
Kristján Valur Jónsson
222b284911
Issue #7105 : weak dict iterators are fragile because of unpredictable GC runs
...
Backport the fix from pyton 3.x for this issue.
2013-12-05 10:03:45 +00:00
Tim Peters
c289fa7556
Fudge - http.client doesn't exist in 2.7. Use Queue.Empty instead.
2013-12-03 21:49:30 -06:00
Tim Peters
0ee9baa8d4
Issue #19138 : doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.
...
Grafted from c80083ad142d.
2013-12-03 21:02:05 -06:00
Alexandre Vassalotti
df9460f8dc
Issue #6477 : Revert fbb97f6eb3b3 as it broke test_xpickle.
2013-11-30 17:43:42 -08:00
Alexandre Vassalotti
a2934280e5
Issue #6477 : Added pickling support for singletons and their types.
2013-11-30 16:52:03 -08:00
Alexandre Vassalotti
1d3a173326
Issue #16231 : Allow false values other than None to be used as persistent IDs.
2013-11-30 13:24:13 -08:00
Zachary Ware
72a01b29bf
Issue #19595 : Re-enable a long-disabled test in test_winsound
2013-11-27 23:56:04 -06:00
Eli Bendersky
f933e081dd
Issue #19815 : Fix segfault when parsing empty namespace declaration.
...
Based on patches by Christian Heimes and Vajrasky Kok
2013-11-28 06:25:45 -08:00
Serhiy Storchaka
cf6a3e2a27
Skip test_find_mac on Windows (issue #19804 ).
...
This test requires the ifconfig executable on $PATH, /sbin/, or /usr/sbin.
2013-11-27 08:57:33 +02:00
Zachary Ware
2a57009b04
Merge heads
2013-11-26 14:55:46 -06:00
Zachary Ware
c0aa2457d8
Issue #19588 : Fixed tests in test_random that were silently skipped most
...
of the time. Patch by Julian Gindi.
2013-11-26 14:49:42 -06:00
Serhiy Storchaka
6d9d30da6a
Issue #11508 : Fixed uuid.getnode() and uuid.uuid1() on environment with
...
virtual interface. Original patch by Kent Frazier.
2013-11-26 22:47:05 +02:00
Antoine Pitrou
60e361fe42
Fix misuse of the bigmemtest decorator
2013-11-26 20:00:34 +01:00
Mark Dickinson
c02c6df2c7
Issue #19638 : Skip large digit string tests on 32-bit platforms.
2013-11-26 17:02:46 +00:00
Mark Dickinson
c2f8c81af0
Issue #19638 : Raise ValueError instead of crashing when converting billion character strings to float.
2013-11-26 16:38:25 +00:00
Gregory P. Smith
d899caa6ca
Fix test_fcntl to run properly on systems that do not support the flags
...
used in the "does the value get passed in properly" test.
2013-11-25 04:45:27 +00:00
Gregory P. Smith
d82634d606
Fix test.test_support.bind_port() to not cause an error when Python was
...
compiled on a system with SO_REUSEPORT defined in the headers but run on
a system with an OS kernel that does not support that new socket option.
2013-11-24 19:42:15 -08:00
Antoine Pitrou
358da5b9f8
Issue #19308 : fix the gdb plugin on gdbs linked with Python 3
2013-11-23 17:40:36 +01:00
Richard Oudkerk
6d24a6e0bb
Issue #19599 : Use a separate pool for test_terminate().
2013-11-21 16:35:12 +00:00