Serhiy Storchaka
016af3f4d4
Issue #18784 : The uuid module no more attempts to load libc via ctypes.CDLL,
...
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
2013-09-13 07:46:40 +03:00
Senthil Kumaran
d184f664e3
Automated merge with file:///Users/skumaran/python/cpython
2013-09-11 22:56:30 -07:00
Senthil Kumaran
f8ce51ab16
Improve the docstring of random.shuffle. Inform users not to provide int arg.
...
Addresses issue #14927
2013-09-11 22:54:31 -07:00
Serhiy Storchaka
dd4754e6a8
Issue #18988 : The "Tab" key now works when a word is already autocompleted.
2013-09-11 22:46:27 +03:00
Mark Dickinson
51ef074d57
Docstring typo fix: Arithmentic -> Arithmetic.
2013-09-09 10:34:24 +01:00
Serhiy Storchaka
dfa689bfdd
Fixed tests with Tcl/Tk <8.5 ( closes #18964 ).
2013-09-08 20:29:37 +03:00
Senthil Kumaran
4fec47e5ed
Fix the dead link of IEEE_854-1987 standard with the Wikipedia entry.
...
Addresses issue #18438
2013-09-07 23:19:29 -07:00
Nick Coghlan
0494c2ae7f
Close #18952 : correctly download test support data
...
When test.support was converted to a package, it started silently
skipping the tests which needed to download support data to run.
This change refactors the affected code, and also tidies up
test.support.findfile to remove the unused *here* parameter, document
the *subdir* parameter and rename the *filename* parameter to avoid
shadowing the file builtin and be consistent with the documentation.
The unexpected skips were noticed and reported by Zachary Ware
2013-09-08 11:40:34 +10:00
Senthil Kumaran
8ef519b24f
Fix License URL display and add test to check for license url presence.
...
Fixes issue #18206 Patch contributed by Berker Peksag and py.user
2013-09-07 13:59:17 -07:00
Tim Peters
23d7d4e85c
Issue 18944: fix a 1-character typo in test_set.py.
...
The error caused test_inline_methods() to test much less than intended.
Caught (& fixed) by Armin Rigo.
2013-09-06 15:41:30 -05:00
Eli Bendersky
f315df31bd
Issue #18849 : Fixed a Windows-specific tempfile bug where collision with an
...
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
2013-09-06 06:11:19 -07:00
Vinay Sajip
43c6ef1899
Issue #18941 : Respected delay when doing rollover.
2013-09-06 10:25:31 +01:00
Vinay Sajip
d859926b29
Issue #18940 : Handled low-volume logging when delay is True.
2013-09-06 10:10:22 +01:00
Senthil Kumaran
324ae385fe
Improve urlencode docstring. Patch by Brian Brazil.
2013-09-05 21:42:38 -07:00
Serhiy Storchaka
362c1b513d
Issue #18830 : inspect.getclasstree() no more produces duplicated entries even
...
when input list contains duplicates.
2013-09-05 17:14:32 +03:00
Antoine Pitrou
e93b63b74b
Issue #18876 : The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
...
Patch by Erik Bray.
2013-09-04 20:46:33 +02:00
Meador Inge
c9e1dcdd53
Issue #16826 : Revert fix while Windows issues are being worked out.
2013-09-03 19:43:49 -05:00
Meador Inge
d151da9ef7
Issue #16826 : Don't check for PYTHONCASEOK when using -E.
...
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
2013-09-03 16:37:26 -05:00
Antoine Pitrou
4c8ce847e6
test_threading isn't rudimentary anymore
2013-09-01 19:51:49 +02:00
Terry Jan Reedy
740d6b6f39
Issue #12037 : Fix test_email for desktop Windows.
2013-08-31 17:12:21 -04:00
Terry Jan Reedy
31e4d325b6
Issue #18489 : Add complete, gui-free tests for idlelib.SearchEngine.
...
Patch import and initialization in SearchEngine to make testing easier.
Improve docstrings, especially to clarify the double role of 'ok' parameters.
Original patch by Phil Webster.
2013-08-31 16:27:16 -04:00
Antoine Pitrou
a8392717f1
Forward port new tests from Issue #18851 .
2013-08-30 23:38:13 +02:00
Charles-François Natali
9939cc89a4
Issue #18418 : After fork(), reinit all threads states, not only active ones.
...
Patch by A. Jesse Jiryu Davis.
2013-08-30 23:32:53 +02:00
Gregory P. Smith
dee0434e2f
Fixes issue #15507 : test_subprocess's test_send_signal could fail if the test
...
runner were run in an environment where the process inherited an ignore
setting for SIGINT. Restore the SIGINT handler to the desired
KeyboardInterrupt raising one during that test.
2013-08-29 13:35:27 -07:00
Charles-François Natali
e33d5b0bc8
Merge.
2013-08-29 19:26:37 +02:00
Charles-François Natali
5fd2642adb
Issue #18643 : Fix some test_socket failures due to large default socket buffer
...
sizes.
2013-08-29 19:01:40 +02:00
Serhiy Storchaka
50254c57cd
Issue #18743 : Fix references to non-existant "StringIO" module
...
in docstrings and comments.
2013-08-29 11:35:43 +03:00
Victor Stinner
3b44a409de
Fix @requires_freebsd_version and @requires_linux_version decorators of
...
test.support, run the test if the platform matchs!
2013-08-28 12:26:28 +02:00
Serhiy Storchaka
9594942716
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 19:40:23 +03:00
Ezio Melotti
4f1353ab10
#18833 : add a test for test_telnetlib. Patch by Alex Volkov.
2013-08-25 23:56:43 +03:00
Charles-François Natali
c20a7b977e
Merge.
2013-08-25 18:27:59 +02:00
Charles-François Natali
249cdc39fc
Issue #18763 : subprocess: The file descriptors are now closed after calling the
...
preexec_fn callback, which may open file descriptors.
2013-08-25 18:24:45 +02:00
Serhiy Storchaka
b33baf1c9f
Issue #18817 : Fix a resource warning in Lib/aifc.py demo.
2013-08-25 19:12:56 +03:00
R David Murray
cd0f74b1e0
#16611 : BaseCookie now parses 'secure' and 'httponly' flags.
...
Previously it generated them if they were given a value, but completely
ignored them if they were present in the string passed in to be parsed. Now
if the flag appears on a cookie, the corresponding Morsel key will reference a
True value. Other pre-existing behavior is retained in this maintenance
patch: if the source contains something like 'secure=foo', morsel['secure']
will return 'foo'. Since such a value doesn't round trip and never did (and
would be a surprising occurrence) a subsequent non-bug-fix patch may change
this behavior.
Inspired by a patch from Julien Phalip, who reviewed this one.
2013-08-25 11:09:02 -04:00
Christian Heimes
157c9834b4
Issue #18709 : Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger
2013-08-25 14:12:41 +02:00
Antoine Pitrou
eba25bafc7
Issue #18756 : make test_urandom_failure more robust by executing its code in a subprocess
2013-08-24 20:52:27 +02:00
Victor Stinner
71fe8c00f6
test_socket: cancel scheduled alarm on test failure
2013-08-24 15:52:47 +02:00
Ezio Melotti
78ede7c96d
#18798 : fix typo in test_fcntl. Patch by Vajrasky Kok.
2013-08-23 23:06:31 +03:00
Victor Stinner
0c2dd0c0a9
Close #17702 : On error, os.environb now removes suppress the except context
...
when raising a new KeyError with the original key.
2013-08-23 19:19:15 +02:00
Brett Cannon
a4975a911d
Issue #18755 : Allow imp.load_*() loaders to have get_data() called
...
multiple times.
2013-08-23 11:45:57 -04:00
Serhiy Storchaka
06ce077e43
Issue #16809 : Fixed some tkinter incompabilities with Tcl/Tk 8.6.
2013-08-22 17:51:58 +03:00
Serhiy Storchaka
203eb317d2
Issue #16809 : Tkinter's splitlist() and split() methods now accept Tcl_Obj
...
argument.
This is needed for support Tcl/Tk 8.6.
2013-08-22 17:40:31 +03:00
R David Murray
00ae435dee
#18324 : set_payload now correctly handles binary input.
...
This also backs out the previous fixes for for #14360 , #1717 , and #16564 .
Those bugs were actually caused by the fact that set_payload didn't decode to
str, thus rendering the model inconsistent. This fix does mean the data
processed by the encoder functions goes through an extra encode/decode cycle,
but it means the model is always consistent. Future API updates will provide
a better way to encode payloads, which will bypass this minor de-optimization.
Tests by Vajrasky Kok.
2013-08-21 21:10:31 -04:00
Antoine Pitrou
1e440cf5a2
Issue #18792 : Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions.
2013-08-22 00:39:46 +02:00
Serhiy Storchaka
9e6b97502f
Issue #17119 : Fixed integer overflows when processing large strings and tuples
...
in the tkinter module.
2013-08-21 21:38:21 +03:00
Christian Heimes
f77b4b20e9
Issue #18747 : Re-seed OpenSSL's pseudo-random number generator after fork.
...
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
2013-08-21 13:26:05 +02:00
Serhiy Storchaka
b1973c252c
Issue #8865 : Concurrent invocation of select.poll.poll() now raises a
...
RuntimeError exception. Patch by Christian Schubert.
2013-08-20 20:38:21 +03:00
Serhiy Storchaka
98985a1980
Issue #2537 : Remove breaked check which prevented valid regular expressions.
...
Patch by Meador Inge.
See also issue #18647 .
2013-08-19 23:18:23 +03:00
Serhiy Storchaka
1ca66edbc5
Issue #18647 : A regular expression in the doctest module rewritten so that
...
determined minimal width of repeated subexpression is >0 (an empty line was
not matched in any case).
2013-08-19 22:59:31 +03:00
Serhiy Storchaka
9d96542b6d
Issue #18647 : Correctly bound calculated min/max width of a subexpression.
...
Now max width is MAXREPEAT on 32- and 64-bit platforms when one of
subexpressions is unbounded repetition.
2013-08-19 22:50:54 +03:00
Terry Jan Reedy
ca64d25dd2
Issue #18489 : idlelib.SearchEngine - add docstrings
...
(original patch by Phil Webster).
2013-08-19 01:05:19 -04:00
Terry Jan Reedy
ba5d8f33ec
Issue #18592 : whitespace
2013-08-18 18:27:02 -04:00
Terry Jan Reedy
c5507c0d76
Issue #18592 : Add docstrings to file being tested (idlelib.SearchDialogBase.py).
2013-08-18 18:22:43 -04:00
Ezio Melotti
85a8629d21
#18466 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:57:41 +03:00
Ezio Melotti
b5bc353b88
#18741 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:11:40 +03:00
Ezio Melotti
30b9d5d3af
#18705 : fix a number of typos. Patch by Févry Thibault.
2013-08-17 15:50:46 +03:00
Christian Heimes
a3811e4b8f
merge
2013-08-17 00:55:39 +02:00
Christian Heimes
824f7f366d
Issue #18709 : Fix CVE-2013-4238. The SSL module now handles NULL bytes
...
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for rfc822Name (email), dNSName (DNS) and
uniformResourceIdentifier (URI).
2013-08-17 00:54:47 +02:00
Charles-François Natali
7bf1125e9f
Issue #16463 : Fix a transient test_timeout failure.
2013-08-16 23:19:22 +02:00
Antoine Pitrou
ec34ab5010
Issue #18756 : Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
2013-08-16 20:44:38 +02:00
Antoine Pitrou
ac601601ce
Issue #1666318 : Add a test that shutil.copytree() retains directory permissions.
...
Patch by Catherine Devlin.
2013-08-16 19:35:02 +02:00
Terry Jan Reedy
29c3fc5d8f
Issue #18732 : Remove unused* parameter output_sep from IdleHistory.History
...
and paired splits and joins that do nothing when output_sep is its default \n.
*It in unused in that the class in only instantiated once, with the default.
Make a few other changes in .fetch and its test.
2013-08-15 16:19:13 -04:00
Terry Jan Reedy
c2564f9329
Issue #18425 : Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan.
2013-08-15 14:32:04 -04:00
Victor Stinner
5e4d6398a1
Issue #18296 : Try to fix TestSendfile.test_trailers() of test_os on FreeBSD
2013-08-15 11:57:02 +02:00
Eric Snow
7491f1726b
issue #18698 : ensure importlib.reload() returns the module out of sys.modules.
2013-08-14 18:03:34 -06:00
Terry Jan Reedy
0a01ac4300
Issue #18425 : Add docstrings to IdleHistory.py. Remove redundant 'history_'
...
prefix from two attributes and two methods of History class.
2013-08-13 19:51:04 -04:00
Victor Stinner
7f7b941fdc
Issue #18405 : Improve the entropy of crypt.mksalt().
2013-08-14 01:39:14 +02:00
Ezio Melotti
4bfa6c54ca
#18687 : remove obsolete comment. Patch by Févry Thibault.
2013-08-13 12:53:40 +03:00
Senthil Kumaran
0d53860e2c
Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb
2013-08-12 22:25:27 -07:00
Eli Bendersky
ba5517d4c0
Issue #12645 : Clarify and reformat the documentation of import_fresh_module
2013-08-11 15:38:08 -07:00
Serhiy Storchaka
b212291b08
Issue #18706 : Fix a test for issue #18681 so it no longer breaks test_codeccallbacks*.
2013-08-11 20:12:20 +03:00
Ezio Melotti
d51914c6c1
#18663 : document that assertAlmostEqual also works when the values are equal and add tests.
2013-08-11 13:04:50 +03:00
Terry Jan Reedy
7608b607b1
Issue #18676 : Change 'positive' to 'non-negative' in queue.py put and get
...
docstrings and ValueError messages. Patch by Zhongyue Luo
2013-08-10 18:17:13 -04:00
Terry Jan Reedy
7c64aad9fb
Issue #18226 : Add docstrings and unittests for idlelib/FormatParagraph.py.
...
Move comment code to a separate function so it can be separately tested.
Original patches by Todd Rovito and Phil Webster.
2013-08-10 16:56:28 -04:00
Ezio Melotti
056bafe7a6
#18681 : Fix a NameError in imp.reload() (noticed by Weizhao Li).
2013-08-10 19:59:36 +03:00
R David Murray
a9e67ad993
Merge heads.
2013-08-10 12:08:41 -04:00
R David Murray
f22b62e261
#8112 : Update the documenting xmlrpc server to use getfullargspec.
...
Before this patch it would raise an error when trying to display
documentation for a method that used annotations.
Patch by Claudiu Popa.
2013-08-10 12:01:47 -04:00
Ezio Melotti
1c4810b57b
#18505 : fix duplicate name and remove duplicate test. Patch by Vajrasky Kok.
2013-08-10 18:57:12 +03:00
Ezio Melotti
2af76da7b4
Fix a couple of typos.
2013-08-10 18:47:07 +03:00
Ezio Melotti
319163244a
#18453 : fix unused variables in test_xmlrpc. Patch by Vajrasky Kok.
2013-08-10 18:37:05 +03:00
Ezio Melotti
0f12be15c6
#18465 : fix unused variables in test_minidom. Patch by Vajrasky Kok.
2013-08-10 18:30:29 +03:00
Ezio Melotti
1d237e5356
#18484 : improve test coverage of http.cookiejar. Patch by Vajrasky Kok.
2013-08-10 18:20:09 +03:00
Ezio Melotti
7ac17f85d3
#18483 : add one more date format in test_http2time_formats. Patch by Vajrasky Kok.
2013-08-10 18:07:25 +03:00
Ezio Melotti
2532635fcd
#18357 : add tests for dictview set difference. Patch by Fraser Tweedale.
2013-08-08 20:12:28 +03:00
Ezio Melotti
4e4f3b8d35
#18581 : remove duplicate test and run a test class that was skipped. Initial patch by Vajrasky Kok.
2013-08-08 19:36:36 +03:00
Ezio Melotti
66f2ea042a
#18273 : move the tests in Lib/test/json_tests to Lib/test/test_json and make them discoverable by unittest. Patch by Zachary Ware.
2013-08-08 15:03:45 +03:00
Terry Jan Reedy
95f34ab959
Issue #18151 : Replace remaining Idle 'open...close' pairs with 'with open'.
2013-08-04 15:39:03 -04:00
Charles-Francois Natali
dd225e4c64
Issue #17684 : Fix some test_socket failures due to limited FD passing support
...
on OS-X. Patch by Jeff Ramnani.
2013-05-20 19:08:19 +02:00
Eli Bendersky
2acc525a97
Issue #17011 : Fix caching of xpath path when namespaces are present.
...
Thanks to Stefan Behnel for the report and proposed solution & test.
2013-08-03 17:47:47 -07:00
Serhiy Storchaka
3ceaff0777
Issue #16741 : Remove testing of implementation artifact.
2013-08-04 01:04:15 +03:00
Serhiy Storchaka
5e376a7809
Issue #18647 : Temporary disable the "nothing to repeat" check to make buildbots happy.
2013-08-03 23:46:19 +03:00
Serhiy Storchaka
f6d0aeeadc
Issue #16741 : Fix an error reporting in int().
2013-08-03 20:55:06 +03:00
Serhiy Storchaka
1f35ae0a3c
Issue #17998 : Fix an internal error in regular expression engine.
2013-08-03 19:18:38 +03:00
doko@ubuntu.com
1dfb9180a7
- Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).
2013-08-03 16:12:33 +02:00
Nick Coghlan
60b3ac7482
Close #18396 : fix spurious test_signal failure on Windows
...
signal.getsignal returns None for some signals if faulthandler
is enabled (Patch by Jeremy Kloth)
2013-08-03 22:56:30 +10:00
Ned Deily
e92dfbfec8
Issue #17046 : Fix test_subprocess test_executable_without_cwd broken test case.
2013-08-02 18:02:21 -07:00
Charles-François Natali
6ddd2653ab
Issue #18325 : Fix a test_kqueue failure on OpenBSD: kevent's data and event
...
members are integers.
2013-08-02 10:21:20 +02:00
Christian Heimes
4ebc9295d1
Add simple test for resource.getpagesize()
2013-07-30 15:44:13 +02:00
Christian Heimes
65aa573082
Add more tests for hashlib and hash object attributes
2013-07-30 15:33:30 +02:00
Eli Bendersky
25f043b152
Issue #18593 : fix typo in comment
2013-07-30 06:12:49 -07:00