Berker Peksag
8d8221f0d6
Issue #26041 : Remove "will be removed in Python 3.7" from description messages
...
We will keep platform.dist() and platform.linux_distribution() to make porting
from Python 2 easier.
Patch by Kumaripaba Miyurusara Athukorala.
2016-04-24 03:32:24 +03:00
Serhiy Storchaka
c2a2a751cf
Issue #26822 : itemgetter, attrgetter and methodcaller objects no longer
...
silently ignore keyword arguments.
2016-04-23 10:51:39 +03:00
Serhiy Storchaka
585c93daea
Issue #26733 : Disassembling a class now disassembles class and static methods.
...
Patch by Xiang Zhang.
2016-04-23 09:23:52 +03:00
Martin Panter
8f26565ba9
Fix spelling (inital), grammar (may translates) in documentation, comments
2016-04-19 04:03:41 +00:00
Victor Stinner
0d88c65231
Backport test_gdb fix for s390x buildbots
2016-04-20 00:30:14 +02:00
Victor Stinner
119ebb70e9
Fix shutil.get_terminal_size() error handling
...
Issue #26801 : Fix error handling in shutil.get_terminal_size(), catch
AttributeError instead of NameError. Patch written by Emanuel Barry.
test_shutil: skip the functional test using "stty size" command if
os.get_terminal_size() is missing.
2016-04-19 22:24:56 +02:00
Zachary Ware
75b1bdcafa
Replace assert statements with self.assertXxx() calls
...
Sync with upstream, see github.com/python/typing/pull/205
2016-04-19 11:49:37 -05:00
Lars Gustäbel
ddd9917ac3
Issue #24838 : Fix test_tarfile.py for non-utf8 filesystem encodings.
2016-04-19 11:58:41 +02:00
Lars Gustäbel
0f450abec4
Issue #24838 : tarfile's ustar and gnu formats now correctly calculate name and
...
link field limits for multibyte character encodings like utf-8.
2016-04-19 08:43:17 +02:00
Guido van Rossum
5abcbb3ee5
typing.py: Consider ellipsis in TupleMeta.__eq__. By Kalle Tuure. github.com/python/typing/pull/201.
2016-04-18 07:37:41 -07:00
Victor Stinner
c1b578608e
Fix test_asyncio.test_timeout_disable()
...
Issue #26777 : Fix random failing of the test on the "AMD64 FreeBSD 9.x 3.5"
buildbot:
File ".../Lib/test/test_asyncio/test_tasks.py", line 2398, in go
self.assertTrue(0.09 < dt < 0.11, dt)
AssertionError: False is not true : 0.11902812402695417
Replace "< 0.11" with "< 0.15".
2016-04-18 10:28:42 +02:00
Martin Panter
d274b3f1f1
Issue #26657 : Fix Windows directory traversal vulnerability with http.server
...
Based on patch by Philipp Hagemeister. This fixes a regression caused by
revision f4377699fd47.
2016-04-18 03:45:18 +00:00
Guido van Rossum
6aafbd433d
Sync test_typing.py with upstream git repo (typing.py was already synced).
2016-04-17 17:52:05 -07:00
Serhiy Storchaka
6a7b3a77b4
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
2016-04-17 08:32:47 +03:00
Martin Panter
50dd1f7dd6
Issue #26717 : Stop encoding Latin-1-ized WSGI paths with UTF-8
...
Patch by Anthony Sottile.
2016-04-17 02:17:03 +00:00
Martin Panter
06172e7bd4
Issue #26782 : Acknowledge the incomplete status of __all__ in 3.5
...
Handle is probably meant to be excluded, and STARTUPINFO will be added to
__all__ in 3.6.
2016-04-16 23:38:25 +00:00
Benjamin Peterson
8917226e4a
test_support -> support
2016-04-16 15:02:23 -07:00
Benjamin Peterson
2b601d3905
add gc support to slice ( closes #26659 )
2016-04-16 14:47:12 -07:00
Serhiy Storchaka
a07ab29a79
Issue #26783 : test_os.WalkTests.test_walk_topdown did't test fwalk and bytes.
...
Patch by Aviv Palivoda.
2016-04-16 17:51:00 +03:00
Senthil Kumaran
e38415e776
issue26775 - Improve test coverage for urllib.parse
...
Patch contributed by Luiz Poleto.
2016-04-16 07:33:15 -07:00
Martin Panter
23172bd47b
Issue #10838 : Run test__all__() everywhere, even if poll() is not available
2016-04-16 11:28:10 +00:00
Martin Panter
119e502277
Fix typos in code comments and documentation
2016-04-16 09:28:57 +00:00
Ethan Furman
5de67b106a
Issue26748: Enum classes should evaluate as True
2016-04-13 23:52:09 -07:00
Brett Cannon
f3ad042bfb
Issue #25609 : Backport typing.ContextManager.
...
This has no semantic impact as the class is guarded with a hasattr()
check; this is being done to keep typing.py in sync between Python 3.5
and 3.6 as requested by Guido.
2016-04-15 10:51:30 -07:00
Serhiy Storchaka
3c149a6832
Issue #26764 : Bacported tests for bytes formatting.
2016-04-15 14:13:37 +03:00
Martin Panter
6245cb3c01
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
...
This affects documentation, code comments, and a debugging messages.
2016-04-15 02:14:19 +00:00
Ethan Furman
de4e079d3d
Issue26748: Enum classes should evaluate as True
2016-04-13 23:53:45 -07:00
Serhiy Storchaka
3d7497608b
Issue #26718 : super.__init__ no longer leaks memory if called multiple times.
...
NOTE: A direct call of super.__init__ is not endorsed!
2016-04-13 15:27:33 +03:00
Senthil Kumaran
a3c532b0ed
[minor] - Correct the docstring of locale.str. Patch by poleto.
2016-04-12 23:14:14 -07:00
Victor Stinner
c6ec54d8eb
Issue #26647 : Fix typo in test_grammar
...
Patch written by Demur Rumed.
2016-04-12 18:33:41 +02:00
Serhiy Storchaka
247763d64e
Issue #26733 : Fixed formatting line numbers in test_dis.
...
Based on patch by Xiang Zhang.
2016-04-12 08:46:28 +03:00
Serhiy Storchaka
e0805cf10e
Issue #26719 : More efficient formatting of ints and floats in json.
2016-04-10 14:41:19 +03:00
Serhiy Storchaka
fc43511867
Issue #25339 : PYTHONIOENCODING now has priority over locale in setting the
...
error handler for stdin and stdout.
2016-04-10 14:34:13 +03:00
Martin Panter
731b1b12b8
Remove relics of str8 (became bytes) and buffer (bytearray) type tests
...
Remove redundant tests now that str is unicode.
2016-04-10 08:48:51 +00:00
Martin Panter
0d0db6cc1e
Issue #26712 : Unify (r)split, (l/r)strip tests into string_tests
...
This eliminates a few redundant test cases.
2016-04-10 08:45:26 +00:00
Martin Panter
d979b2cfcf
Issue #21069 : Move test_fileno() from test_urllibnet and rewrite it
...
* No longer attempts to close already freed socket file descriptor
* Use socket object to be compatible with Windows
* Do not use a timeout to avoid complication with non-blocking mode
* Use internal localhost server rather than depending on a third party
* Avoid trouble with buffered HTTP data by testing tunnelled CONNECT data
2016-04-09 14:03:17 +00:00
Martin Panter
fc475a9fa6
Issue #26609 : Fix HTTP server tests to request an absolute URL path
2016-04-09 04:56:10 +00:00
Berker Peksag
d7fdc86153
Issue #16329 : Add .webm to mimetypes.types_map
...
Patch by Giampaolo Rodola'.
2016-04-09 08:00:20 +03:00
Berker Peksag
a2d7cf087f
Issue #13952 : Add .csv to mimetypes.types_map
...
Patch by Geoff Wilson.
2016-04-09 07:52:05 +03:00
Serhiy Storchaka
94ad49fabc
Issue #26709 : Fixed Y2038 problem in loading binary PLists.
2016-04-08 15:00:02 +03:00
Martin Panter
152a19c6bd
Issue #26257 : Eliminate buffer_tests.py and fix ByteArrayAsStringTest
...
ByteArrayAsStringTest.fixtype() was converting test data to bytes, not byte-
array, therefore many of the test cases inherited in this class were not
actually being run on the bytearray type.
The tests in buffer_tests.py were redundant with methods in string_tests
.MixinStrUnicodeUserStringTest and string_tests.CommonTest. These methods are
now moved into string_tests.BaseTest, where they will also get run for bytes
and bytearray.
This change also moves test_additional_split(), test_additional_rsplit(), and
test_strip() from CommonTest to BaseTest, meaning these tests are now run for
bytes and bytearray. I plan to eliminate redundancies with existing tests in
test_bytes.py soon.
2016-04-06 06:37:17 +00:00
Guido van Rossum
0e0563ca2c
Add Text=str. Make ItemsView derive from AbstractSet, not Set (which is the concrete set).
2016-04-05 14:54:25 -07:00
Guido van Rossum
bd5b9a0742
Many changes from the upstream repo ( https://github.com/python/typing ).
...
This syncs to rev 7b43ada77821d23e55e3a4b35f6055a59b9e1ad7 there.
Summary:
- Add typing.DefaultDict (as a generic variant of collections.defaultdict).
- Use collections.Reversible if it exists (only relevant for Python 3.6).
- Revamped generic class behavior to conform to updated PEP 484.
- Improve speed of Generic.__new__.
- Make sure __init__ is called for new Generic instances. Fix issue #26391 .
- Refactor async support to be compatible with 3.2, 3.3, 3.4.
- Remove 'io' and 're' from __all__ (they still exist, just not
included by "import *"). Fix issue #26234 .
- Change @overload -- you can now use it outside stubs (you still
cannot call the decorated function though).
2016-04-05 08:28:52 -07:00
Martin Panter
cc71a795df
Fix typos in documentation and comments
2016-04-05 06:19:42 +00:00
Martin Panter
acc03195b0
Issue #26586 : Handle excessive header fields in http.server, by Xiang Zhang
2016-04-03 00:45:46 +00:00
Victor Stinner
c94a93aecb
asyncio: Don't log ConnectionAbortedError
...
Issue #26509 : In fatal error handlers, don't log ConnectionAbortedError which
occur on Windows.
2016-04-01 21:43:39 +02:00
Victor Stinner
2ba8ece5be
asyncio: allow None as wait timeout
...
Fix GH#325: Allow to pass None as a timeout value to disable timeout logic.
Change written by Andrew Svetlov and merged by Guido van Rossum.
2016-04-01 21:39:09 +02:00
Martin Panter
3ee147ffbb
Issue #22854 : Fix logic for skipping test
2016-03-31 21:05:31 +00:00
Martin Panter
0950e6aef6
Issue #22854 : Skip pipe seek tests on Windows
2016-03-31 10:31:30 +00:00
Martin Panter
754aab28ed
Issue #22854 : Clarify documentation about UnsupportedOperation and add tests
...
Also change BufferedReader.writable() and BufferedWriter.readable() to always
return False.
2016-03-31 07:21:56 +00:00
Serhiy Storchaka
8dc2ec1513
Issue #26492 : Added additional tests for exhausted iterators of mutable sequences.
2016-03-30 21:01:26 +03:00
Serhiy Storchaka
fbb1c5ee06
Issue #26494 : Fixed crash on iterating exhausting iterators.
...
Affected classes are generic sequence iterators, iterators of str, bytes,
bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding
views and os.scandir() iterator.
2016-03-30 20:40:02 +03:00
Victor Stinner
53f8ba52e6
test_urllibnet: set timeout on test_fileno()
...
Use the default timeout of 30 seconds to avoid blocking forever.
2016-03-30 02:19:01 +02:00
Victor Stinner
9db2ae7263
Fix ResourceWarning in test_unittest when interrupted
2016-03-30 01:15:28 +02:00
Victor Stinner
06ddd35f5f
Issue #25911 : Backport os._DummyDirEntry fixes
...
* Fix test_os.BytesWalkTests on Windows
* Mimick better the reference os.DirEntry on Windows
* _DummyDirEntry now caches os.stat() result
* _DummyDirEntry constructor now tries to get os.stat()
* Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links:
use os.stat(path, follow_symlinks=False).
2016-03-29 13:38:22 +02:00
Victor Stinner
8ba2083e0e
Issue #26643 : Add missing shutil resources to regrtest.py
2016-03-29 13:33:35 +02:00
Donald Stufft
2bc69c49e1
Upgrade ensurepip._bundled pip to 8.1.1 and setuptools to 20.3
2016-03-17 11:00:08 -04:00
Serhiy Storchaka
adca8464b1
Backed out changeset 19a3e0e664af
2016-03-08 21:13:35 +02:00
Serhiy Storchaka
388b90f28e
Issues #23808 , #25911 : Trying to fix walk tests on Windows.
...
On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
2016-03-08 16:11:26 +02:00
Benjamin Peterson
f11b25b081
properly use the ObjArgs variant of CallMethod in dictview binary operations ( closes #26478 )
2016-03-03 22:05:36 -08:00
Yury Selivanov
90faa09152
asyncio: Update 3.4 asyncio/test_tasks to upstream version
2016-03-02 10:33:22 -05:00
Donald Stufft
5d0124623c
Upgrade pip to 8.0.2
2016-01-21 21:55:32 -05:00
Donald Stufft
33a827678e
Update pip to 8.0.0 and setuptools to 19.4
2016-01-19 20:13:51 -05:00
Gregory P. Smith
c7b05a409d
Make the error message regex more lenient so that it matches both
...
"certificate verify failed " and "CERTIFICATE_VERIFY_FAILED " as
some SSL libraries use different text than OpenSSL.
2016-01-15 17:29:45 -08:00
Martin Panter
3f2240ccb6
Issue #25940 : Merge ETIMEDOUT fix from 3.3 into 3.4
2016-01-15 02:18:31 +00:00
Martin Panter
fab75d9bb9
Issue #25940 : Merge ETIMEDOUT fix from 3.2 into 3.3
2016-01-15 02:08:13 +00:00
Martin Panter
035583b389
Issue #25940 : On Windows, connecting to port 444 returns ETIMEDOUT
2016-01-15 01:16:41 +00:00
Martin Panter
b55f8b79af
Issue #25940 : Update new SSL tests for self-signed.pythontest.net
2016-01-14 12:53:56 +00:00
Martin Panter
514bb0711f
Issue #25940 : Merge self-signed.pythontest.net testing from 3.3 into 3.4
2016-01-14 12:46:49 +00:00
Martin Panter
73f55076f6
Issue #25940 : Merge self-signed.pythontest.net testing from 3.2 into 3.3
2016-01-14 12:21:02 +00:00
Martin Panter
3d81d93f34
Issue #25940 : Use self-signed.pythontest.net in SSL tests
...
This is instead of svn.python.org, whose certificate recently expired, and
whose new certificate uses a different root certificate.
The certificate used at the pythontest server was modifed to set the "basic
constraints" CA flag. This flag seems to be required for test_get_ca_certs_
capath() to work (in Python 3.4+).
Added the new self-signed certificate to capath with the following commands:
cp Lib/test/{selfsigned_pythontestdotnet.pem,capath/}
c_rehash -v Lib/test/capath/
c_rehash -v -old Lib/test/capath/
# Note the generated file names
cp Lib/test/capath/{selfsigned_pythontestdotnet.pem,0e4015b9.0}
mv Lib/test/capath/{selfsigned_pythontestdotnet.pem,ce7b8643.0}
The new server responds with "No route to host" when connecting to port 444.
2016-01-14 09:36:00 +00:00
Yury Selivanov
d9d0e864b9
Issue #26050 : Add asyncio.StreamReader.readuntil() method.
...
Patch by Марк Коренберг.
2016-01-11 12:28:19 -05:00
Andrew Svetlov
9d976fa75f
Sync with asyncio
2016-01-11 12:25:23 +02:00
Andrew Svetlov
c07b16b40f
Sync with asyncio repo
2016-01-11 08:42:49 +02:00
Guido van Rossum
9c39b67ca5
Hopeful fix for test_rglob_common on Windows without symlinks.
2016-01-07 13:12:34 -08:00
Guido van Rossum
bc9fddaf50
Add another try/except PermissionError to avoid depending on listdir order. Fix issues #24120 and #26012 .
2016-01-07 10:56:36 -08:00
Guido van Rossum
e428231539
Issue #22570 : Add 'path' attribute to pathlib.Path objects.
2016-01-06 11:01:42 -08:00
Guido van Rossum
69bfb15bd8
Issue #26012 : Don't traverse into symlinks for ** pattern in pathlib.Path.[r]glob().
2016-01-06 10:31:33 -08:00
Guido van Rossum
6c2d33a258
Issue #24120 : Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri.
2016-01-06 09:42:07 -08:00
Larry Hastings
52d6c2c4c0
Merge.
2015-12-20 22:44:06 -08:00
Larry Hastings
5caf39d827
Rebuild pydoc topics for Python 3.4.4 final.
2015-12-19 19:28:52 -08:00
Terry Jan Reedy
5aeadb3fba
Issue #25905 : Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION MARK.
2015-12-18 15:46:57 -05:00
Martin Panter
ce70132bc4
Issue #25809 : Skip testing platform-dependent French thousands separator
2015-12-12 06:53:34 +00:00
Yury Selivanov
ea4ce1c776
asyncio/tests: Fix a ResourceWarning due to unclosed loop
2015-12-16 20:41:11 -05:00
Yury Selivanov
3cd863c86e
asyncio/tests: Fix ResourceWarnings related to unclosed transports
2015-12-16 20:23:26 -05:00
Yury Selivanov
5f68ca66bf
asyncio/tests: Fix some ResourceWarnings
2015-12-16 19:51:09 -05:00
Yury Selivanov
aa78adc589
asyncio/tests: Fix deprecation warning
2015-12-16 19:40:03 -05:00
Yury Selivanov
ec45226eeb
Normalize whitespace
2015-12-16 19:35:30 -05:00
Yury Selivanov
d5c2a62100
asyncio: Skip getaddrinfo if host is already resolved.
...
getaddrinfo takes an exclusive lock on some platforms, causing clients to queue
up waiting for the lock if many names are being resolved concurrently. Users
may want to handle name resolution in their own code, for the sake of caching,
using an alternate resolver, or to measure DNS duration separately from
connection duration. Skip getaddrinfo if the "host" passed into
create_connection is already resolved.
See https://github.com/python/asyncio/pull/302 for details.
Patch by A. Jesse Jiryu Davis.
2015-12-16 19:31:17 -05:00
Gregory P. Smith
0212c4dc6b
Re-fix issue #19284 : Don't generate the no-op -R command line
...
parameter to "enable" the always on sys.flags.hash_randomization
in _args_from_interpreter_flags() used by multiprocessing and
some unittests. This simplifies the code.
2015-12-13 20:05:55 -08:00
Gregory P. Smith
220ba72c20
Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed
...
due to test_hash_randomization expecting a different seed per process.
2015-12-13 20:01:44 -08:00
Gregory P. Smith
4cb6d37d1d
assert_python_ok docstring typo fix.
2015-12-13 20:00:24 -08:00
Yury Selivanov
0ac3a0cd79
asyncio: Make Tasks check if Futures are attached to the same event loop
...
See https://github.com/python/asyncio/pull/303 for details
2015-12-11 11:33:59 -05:00
Yury Selivanov
dddc781998
asyncio: Sync with github
2015-12-11 11:32:59 -05:00
doko@ubuntu.com
5e58600c42
Remove x permissions from Lib/test/test_script_helper.py
2015-12-07 12:19:49 +01:00
Larry Hastings
8986c442cd
Rebuilt pydoc topics for 3.4.4rc1.
2015-12-06 05:51:56 -08:00
Martin Panter
f7fdbdab5b
Issue #25764 : Skip the test on OS X
...
The OS X buildbots were failing at the second setrlimit() call with EPERM, as
if they were trying to raise the hard limit. The call should be keeping the
hard limit the same and raising the soft limit back to its original value, so
I don't understand the failure.
2015-12-05 09:51:52 +00:00
Zachary Ware
6d8a260845
Issue #25800 : Fix running test_capi directly
2015-12-05 00:16:55 -06:00
R David Murray
ced699b4c7
#24903 : Remove misleading error message to fix regression.
...
Before the argparse conversion, compileall would (sometimes) accept multiple
paths when -d was specified. Afterward, it does not. The corresponding check
in the original code claimed to prevent multiple *directories* from being
specified...but it didn't really work even to do that. So this patch fixes
the regression by invoking the consenting adults rule: if you specify a
combination of arguments to compileall that produces files with inconsistent
destdirs (which you could do before), it is on you.
Patch by Jake Garver.
2015-12-04 22:54:38 -05:00
Martin Panter
afdd51343c
Issue #25764 : Preserve subprocess fork exception when preexec_fn used
...
Also fix handling of failure to release the import lock.
2015-11-30 02:21:41 +00:00
Serhiy Storchaka
c7217d7c22
Issue #6478 : _strptime's regexp cache now is reset after changing timezone
...
with time.tzset().
2015-12-03 22:21:07 +02:00
Serhiy Storchaka
7aa690860e
Issue #25709 : Fixed problem with in-place string concatenation and utf-8 cache.
2015-12-03 01:02:03 +02:00
Steven D'Aprano
c0c00c38ad
Fix for issue #25177 with the mean of very small and very large numbers.
2015-12-01 13:48:48 +11:00
Serhiy Storchaka
a8d83f5fc9
Removed debugging output of exception raised by __reduce__ method.
2015-12-01 00:39:25 +02:00
Serhiy Storchaka
cbbec1c53f
Issue #25718 : Fixed copying object with state with boolean value is false.
2015-11-30 17:20:02 +02:00
Serhiy Storchaka
7279befccb
Issue #25761 : Added more test cases for testing unpickling broken data.
...
Output raised exception at verbose level 2 (-vv).
2015-11-29 13:12:10 +02:00
Serhiy Storchaka
c472246d81
Issue #10131 : Fixed deep copying of minidom documents. Based on patch
...
by Marian Ganisin.
2015-11-26 23:49:42 +02:00
Martin Panter
92072ac8b4
Issue #25622 : Rename to PythonValuesTestCase and enable for non-Windows
2015-11-26 02:36:26 +00:00
Serhiy Storchaka
d28bb624d1
Issue #24097 : Fixed crash in object.__reduce__() if slot name is freed inside
...
__getattr__. Original patch by Antoine Pitrou.
2015-11-25 18:33:29 +02:00
Serhiy Storchaka
33e7ea5ad6
Issue #25616 : Tests for OrderedDict are extracted from test_collections
...
into separate file test_ordered_dict.
2015-11-25 17:09:01 +02:00
Serhiy Storchaka
15095800a3
Issue #24731 : Fixed crash on converting objects with special methods
...
__bytes__, __trunc__, and __float__ returning instances of subclasses of
bytes, int, and float to subclasses of bytes, int, and float correspondingly.
2015-11-25 15:47:01 +02:00
Martin Panter
ed92910852
Issue #25663 : Make rlcompleter avoid duplicate global names
2015-11-23 23:50:26 +00:00
Serhiy Storchaka
e3d4ec4766
Issue #25688 : Fixed file leak in ElementTree.iterparse() raising an error.
2015-11-23 15:44:03 +02:00
Serhiy Storchaka
e9b3074cf9
Issue #23914 : Fixed SystemError raised by unpickler on broken pickle data.
2015-11-23 15:17:43 +02:00
Serhiy Storchaka
b6aa5375d5
Issue #25691 : Fixed crash on deleting ElementTree.Element attributes.
2015-11-23 08:42:25 +02:00
Serhiy Storchaka
8bc792a602
Issue #25624 : ZipFile now always writes a ZIP_STORED header for directory
...
entries. Patch by Dingyuan Wang.
2015-11-22 14:49:58 +02:00
Serhiy Storchaka
04d759b1e4
Issue #19687 : Fixed memory leak on failed Element slice assignment.
...
Added new tests for Element slice assignments.
2015-11-22 12:18:38 +02:00
Terry Jan Reedy
6e92c1137b
Update idlelib/NEWS.txt.
2015-11-21 13:31:27 -05:00
Serhiy Storchaka
b42de2f309
Issue #25686 : test_shutil no longer uses the distutils package for searching
...
and running external archivers.
2015-11-21 14:09:26 +02:00
Terry Jan Reedy
e1b02e0459
Issue 15348: Stop debugger engine (normally in user process)
...
before closing debugger window in IDLE process.
2015-11-21 00:05:03 -05:00
Terry Jan Reedy
6a904c16f7
Issue #24455 : Prevent IDLE from hanging when a) closing the shell while the
...
debugger is active (15347); b) closing the debugger with the [X] button
(15348); and c) activating the debugger when already active (24455).
The patch by Mark Roseman does this by making two changes.
1. To suspend and resume the gui.interaction method, use the tcl vwait
mechanism interded for this purpose instead of root.mainloop & .quit.
2. In gui.run, allow any existing interaction to terminate first.
2015-11-20 19:36:43 -05:00
Yury Selivanov
0f3c9765d4
asyncio: Fix with github
...
See https://github.com/python/asyncio/pull/295 for details
2015-11-20 12:57:34 -05:00
Yury Selivanov
a211a7a0e7
asyncio.tests: Fix whitespace
2015-11-20 12:43:52 -05:00
Yury Selivanov
d59bba88e3
asyncio: Drop "value" parameter from Task._step method.
2015-11-20 12:41:03 -05:00
Yury Selivanov
b485bb416c
asyncio: Sync with github
2015-11-20 12:39:43 -05:00
Terry Jan Reedy
4379d15d4c
Make it slightly clearer that IDLE close message is referring to user program,
...
not to IDLE itself.
2015-11-20 12:21:48 -05:00
Martin Panter
a82642f9db
Issue #25583 : Avoid incorrect errors raised by os.makedirs(exist_ok=True)
2015-11-19 04:48:44 +00:00
Guido van Rossum
41f69f4cc7
Issue #25593 : Change semantics of EventLoop.stop().
2015-11-19 13:28:47 -08:00
Yury Selivanov
b3dd6d70c7
asyncio: Error if awaiting in parallel on the same coroutine
...
This change won't do anything in CPython 3.4
See https://github.com/python/asyncio/pull/293 for details.
2015-11-18 12:39:45 -05:00
Yury Selivanov
5d7e3b6cd2
asyncio: Cleanup Future API
...
See https://github.com/python/asyncio/pull/292 for details.
2015-11-17 12:19:41 -05:00
Yury Selivanov
0013ccedd1
asyncio: Sync with github
2015-11-17 12:02:21 -05:00
Yury Selivanov
a4afc4876b
asyncio: Optimize Task._wakeup
...
See https://github.com/python/asyncio/pull/289 for details.
2015-11-16 15:12:10 -05:00
Yury Selivanov
5bb1afb332
asyncio: Add Transport.is_closing()
...
See https://github.com/python/asyncio/pull/291 for details.
2015-11-16 12:43:21 -05:00
Terry Jan Reedy
4932ac244f
Issue #24750 : whitespace
2015-11-16 07:36:22 -05:00
Terry Jan Reedy
d36d817a84
Issue #24750 : Improve appearance of IDLE editor window status bar.
...
Patch by Mark Roseman.
2015-11-16 07:32:26 -05:00
Martin Panter
6e0889f0c7
Issue #20220 : Add DST rules to work around glibc quirk
...
This was triggering intermittent failures in unrelated tests.
2015-11-16 07:21:38 +00:00
Serhiy Storchaka
e28209f251
Issue #9051 : Added tests for pickling and copying the timezone objects.
2015-11-16 11:12:58 +02:00
Gregory P. Smith
a0c9caad66
Fix issue #6973 : When we know a subprocess.Popen process has died, do
...
not allow the send_signal(), terminate(), or kill() methods to do
anything as they could potentially signal a different process.
2015-11-15 18:19:10 -08:00
Serhiy Storchaka
0d441119f5
Issue #25388 : Fixed tokenizer crash when processing undecodable source code
...
with a null byte.
2015-11-14 15:10:35 +02:00
Martin Panter
2e4571a456
Fix a few grammar problems in the documentation and comments
2015-11-14 01:07:43 +00:00
Martin Panter
ac34e09bbf
Correct Content-Type syntax in documentation
2015-11-14 00:58:32 +00:00
Martin Panter
06622ead80
Issue #25590 : Make rlcompleter only call getattr() once per attribute
...
Previously it was called another time via hasattr(), and both calls were
made once for dir(f) and again for dir(f.__class__). This includes a
backport of changing from a list to a set from revision 4dbb315fe667.
2015-11-13 22:47:00 +00:00
Martin Panter
1bb651540e
Issue #25498 : Fix GC crash due to ctypes objects wrapping a memoryview
...
This was a regression caused by revision 1da9630e9b7f. Based on patch by
Eryksun.
2015-11-13 21:43:39 +00:00
Yury Selivanov
abe9625eeb
asyncio: Fix sporadic failing unittests in debug mode
2015-11-13 12:28:48 -05:00
Terry Jan Reedy
5496ba2ddb
Indent
2015-11-12 15:24:33 -05:00
Terry Jan Reedy
c15a7c615e
Whitespace
2015-11-12 15:06:07 -05:00
Terry Jan Reedy
d0c0f0041c
Issue #25313 : Change the handling of new built-in text color themes to better
...
address the compatibility problem introduced by the addition of IDLE Dark.
Consistently use the revised idleConf.CurrentTheme everywhere in idlelib.
2015-11-12 15:02:57 -05:00
Serhiy Storchaka
84023247b4
Issue #25607 : Restore old distutils logging threshold after running tests that
...
parse command line arguments.
2015-11-12 19:46:23 +02:00
Serhiy Storchaka
fda7fe0148
Restore old distutils logging threshold after running test_log.
2015-11-12 13:15:41 +02:00
Serhiy Storchaka
d7a4415599
Issue #22995 : Default implementation of __reduce__ and __reduce_ex__ now
...
rejects builtin types with not defined __new__.
Added tests for non-pickleable types.
2015-11-12 11:23:04 +02:00
Benjamin Peterson
a9dcdabccb
always set OP_NO_SSLv3 by default ( closes #25530 )
2015-11-11 22:38:41 -08:00
Serhiy Storchaka
e1dc3d47e0
Issue #6598 : Avoid clock wrapping around in test_make_msgid_collisions.
...
Use time.monotonic or time.time instead of time.clock.
2015-11-10 19:50:14 +02:00
Serhiy Storchaka
40fe35a95e
Issue #25263 : Fixed the tkinter.test.test_tkinter.test_font.FontTest test
...
failure when the test is ran the second time.
The root attribute was set in parent class in setUpClass and then
overridded in child class in tearDownClass.
2015-11-10 15:30:35 +02:00
Serhiy Storchaka
b63902a748
Issue #25582 : Fixed 100 MB memory leak in test_ctypes.
2015-11-09 22:31:10 +02:00
Serhiy Storchaka
411dfd871c
Issue #22643 : Skip test_case_operation_overflow on computers with low memory.
2015-11-07 16:54:48 +02:00
Serhiy Storchaka
608c213530
Issue #892902 : Added new tests for pickling recursive collections.
2015-11-07 11:16:10 +02:00
Martin Panter
eeb896c411
Issue #24802 : Copy bytes-like objects to null-terminated buffers if necessary
...
This avoids possible buffer overreads when int(), float(), compile(), exec()
and eval() are passed bytes-like objects. Similar code is removed from the
complex() constructor, where it was not reachable.
Patch by John Leitch, Serhiy Storchaka and Martin Panter.
2015-11-07 02:32:21 +00:00
Martin Panter
9ad0aae656
Issue #18010 : Fix pydoc web server search to handle package exceptions
...
Implementation by Antoine Pitrou.
2015-11-06 00:27:14 +00:00
Yury Selivanov
ade0412613
asyncio: Optimize asyncio.sleep(0)
2015-11-05 14:29:04 -05:00
Serhiy Storchaka
d65c9496da
Issue #25523 : Further a-to-an corrections.
2015-11-02 14:10:23 +02:00
Martin Panter
7462b64911
Issue #25523 : Correct "a" article to "an" article
...
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
or edited some other way to fix the grammar.
2015-11-02 03:37:02 +00:00
Serhiy Storchaka
314464d0ab
Issue #25510 : fileinput.FileInput.readline() now returns b'' instead of ''
...
at the end if the FileInput was opened with binary mode.
Patch by Ryosuke Ito.
2015-11-01 16:43:58 +02:00
Martin Panter
1f1177d69a
Fix some spelling errors in documentation and code comments
2015-10-31 11:48:53 +00:00
Terry Jan Reedy
bbdc065506
Issue #25507 : move test-specific imports to test function (idlelib.IOBinding).
2015-10-30 02:47:06 -04:00
Serhiy Storchaka
ea4cb63e68
Issue #21827 : Fixed textwrap.dedent() for the case when largest common
...
whitespace is a substring of smallest leading whitespace.
Based on patch by Robert Li.
2015-10-28 21:39:36 +02:00
Zachary Ware
df2660e430
Issue #25494 : Remove extra quote from docstring.
...
Patch by John Mark Vandenberg.
2015-10-27 22:00:41 -05:00
Terry Jan Reedy
4c973e9a4b
Display IDLE warning as a warning rather than as an error.
...
Clarify message and expected action for beginners.
Guard against astral chars in path incorporated in message.
2015-10-27 03:38:02 -04:00
Martin Panter
5487c13e44
Issue #23391 : Restore OSError constructor argument documentation
...
This restores details lost in revision 097f4fda61a4 (since Python 3.3,
related to the new OSError subclasses). Further additions:
* Markup for attributes and constructor signature
* Explain "winerror" and "filename2"
* Extend test to check for filename2 defaulting to None
* Clarify that the constructor can return a subclass
I have intentionally left out any details of allowing more than five
arguments, or how the "args" attribute is set for four or more arguments.
These details seem to be dependent on the Python version and platform.
2015-10-26 11:05:42 +00:00
Zachary Ware
f085a16f55
Issue #25456 : Fix test_idle when Tcl/Tk DLLs are loaded from python.exe's home
...
rather than from elsewhere on PATH.
2015-10-24 23:22:16 -05:00
Benjamin Peterson
d9dbf49383
accepted sockets shouldn't inherit the SOCK_NONBLOCK flag ( closes #25471 )
2015-10-24 20:06:04 -07:00
Serhiy Storchaka
458123bd18
Issue21160: Correct comments in nturl2path. Patch by Jurko Gospodnetić.
2015-10-24 17:39:36 +03:00
Terry Jan Reedy
d081229c4e
Issue #24782 : Limit width of canvas and hence IDLE settings dialog.
2015-10-22 03:27:31 -04:00
Terry Jan Reedy
47304c0669
Issue #24782 : Don't try to run now-removed extension dialog test.
2015-10-20 02:15:28 -04:00
Guido van Rossum
06d48dbea8
Fix whitespace.
2015-10-19 12:00:04 -07:00
Guido van Rossum
c44ecdf687
Issue #25441 : asyncio: Raise error from drain() when socket is closed.
2015-10-19 11:49:30 -07:00
Vinay Sajip
277640af0f
Closes #25411 : Improved Unicode support in SMTPHandler.
2015-10-17 16:13:10 +01:00
Terry Jan Reedy
b2f87608d1
Issue #24782 : whitespace
2015-10-13 22:09:06 -04:00
Terry Jan Reedy
93f3542ae4
Issue #24782 : Finish converting the Configure Extension dialog into a new
...
tab in the IDLE Preferences dialog. Code patch by Mark Roseman.
2015-10-13 22:03:51 -04:00
Serhiy Storchaka
5805ddeedb
Issue #25380 : Fixed protocol for the STACK_GLOBAL opcode in
...
pickletools.opcodes.
2015-10-13 21:12:32 +03:00
Zachary Ware
83fd0a81a4
Issue #25093 : Fix test_tcl's testloadWithUNC for paths with spaces
...
Patch by Serhiy Storchaka.
2015-10-12 23:27:58 -05:00
Terry Jan Reedy
d0cadba85f
Issue #22726 : Re-activate config dialog help button with some content about
...
the other buttons and the new IDLE Dark theme.
2015-10-11 22:07:31 -04:00
Serhiy Storchaka
1fdc80b55f
Cleanup test_descr: remove C8 that is the same as C3.
2015-10-11 17:42:39 +03:00
Benjamin Peterson
414918a939
use the with statement for locking the internal condition ( closes #25362 )
...
Patch by Nir Soffer.
2015-10-10 19:34:46 -07:00
Brett Cannon
89065d9fc7
Issue #25099 : Skip relevant tests in test_compileall when an entry on
...
sys.path has an unwritable __pycache__ directory.
This typically comes up when someone runs the test suite from an
administrative install of Python on Windows where the user does not
have write permissions to the stdlib's directory.
Thanks to Zachary Ware and Matthias Klose for reporting bugs related
to this issue.
(grafted from 34bbd537b3e688dfbb6498e9083445a6a72fc4b1)
2015-10-09 15:09:43 -07:00
Serhiy Storchaka
7b2cfc4465
Issue #25365 : test_pickle now works in threads disabled builds.
2015-10-10 20:10:07 +03:00
Martin Panter
7c6420a552
Issue #25322 : Fix test for nested contextlib.suppress
2015-10-10 11:04:44 +00:00
Martin Panter
e44dba3b4f
Issue #24402 : Factor out PtyTests.run_child() in input() tests
...
This reuses existing code to hopefully make the new test_input_no_stdout_
fileno() test work. It is hanging Free BSD 9 and OS X Tiger buildbots, and I
don't know why.
2015-10-10 05:27:15 +00:00
Martin Panter
c9a6ab56cf
Issue #24402 : Fix input() when stdout.fileno() fails; diagnosed by Eryksun
...
Also factored out some test cases into a new PtyTests class.
2015-10-10 01:25:38 +00:00
Martin Panter
9955a373a8
Various minor typos in documentation and comments
2015-10-07 10:26:23 +00:00
Benjamin Peterson
bd6c41a185
prevent unacceptable bases from becoming bases through multiple inheritance ( #24806 )
2015-10-06 19:36:54 -07:00
Zachary Ware
106ddf07b3
Issue #25097 : Re-raise any other pywin32 error
2015-10-06 15:28:43 -05:00
Zachary Ware
22226c5595
Issue #25097 : fix Windows error number access
2015-10-06 15:22:13 -05:00
Serhiy Storchaka
a6d04cf4e6
Merge heads
2015-10-06 18:38:25 +03:00
Guido van Rossum
36bbd0f239
Issue #23972 : Fix tests for Windows and Debian.
2015-10-06 08:24:10 -07:00
Serhiy Storchaka
5f6fa82617
Issue #25317 : Converted doctests in test_tokenize to unittests.
...
Made test_tokenize discoverable.
2015-10-06 18:16:28 +03:00
Benjamin Peterson
15982aad2b
reinitialize an Event's Condition with a regular lock ( closes #25319 )
2015-10-05 21:56:22 -07:00
Guido van Rossum
601953b679
Docs and one small improvement for issue #25304 , by Vincent Michel.
2015-10-05 16:20:00 -07:00
Guido van Rossum
b9bf913ab3
Issue #23972 : updates to asyncio datagram API. By Chris Laws.
2015-10-05 09:15:28 -07:00
Terry Jan Reedy
d17e9785de
Issue #24820 : Update IDLE NEWS items.
2015-10-04 01:14:51 -04:00
Terry Jan Reedy
be5b7a2437
Issue #24820 : Add 'IDLE Dark' text color theme, warning, and solution.
2015-10-04 00:31:05 -04:00