Victor Stinner
82f04e2dfd
regrtest: Fix module.__path__
...
Issue #26538 : libregrtest: Fix setup_tests() to keep module.__path__ type
(_NamespacePath), don't convert to a list.
Add _NamespacePath.__setitem__() method to importlib._bootstrap_external.
2016-03-15 23:08:44 +01:00
Victor Stinner
6453e9ed0a
Issue #26564 : Fix test_capi
2016-03-15 23:36:28 +01:00
Victor Stinner
b380010782
Merge 3.5 (test_faulthandler)
2016-03-15 17:24:13 +01:00
Victor Stinner
57003f81ea
faulthandler: Test Py_FatalError() with GIL released
...
Issue #26558 .
2016-03-15 17:23:35 +01:00
Victor Stinner
32eb840a42
Issue #26566 : Rewrite test_signal.InterProcessSignalTests
...
* Add Lib/test/signalinterproctester.py
* Don't disable the garbage collector anymore
* Don't use os.fork() with a subprocess to not inherit existing signal handlers
or threads: start from a fresh process
* Don't use UNIX kill command to send a signal but Python os.kill()
* Use a timeout of 10 seconds to wait for the signal instead of 1 second
* Always use signal.pause(), instead of time.wait(1), to wait for a signal
* Use context manager on subprocess.Popen
* remove code to retry on EINTR: it's no more needed since the PEP 475
* remove unused function exit_subprocess()
* Cleanup the code
2016-03-15 11:12:35 +01:00
Antoine Pitrou
58f2bd86fb
Issue #26523 : The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
2016-03-15 10:52:51 +01:00
Antoine Pitrou
62b6a0d70c
Issue #26523 : The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
2016-03-15 10:48:28 +01:00
Victor Stinner
c4aec3628b
Check the GIL in PyObject_Malloc()
...
Issue #26558 : The debug hook of PyObject_Malloc() now checks that the GIL is
held when the function is called.
2016-03-14 22:26:53 +01:00
Victor Stinner
08572f68a9
Issue #26516 : Fix test_capi on AIX
...
Fix regex for parse a pointer address.
2016-03-14 21:55:43 +01:00
Victor Stinner
0ab7d0978b
Merge 3.5 (test_venv)
2016-03-14 18:22:12 +01:00
Victor Stinner
87d6e1364c
Fix test_venv on FreeBSD buildbot
...
Ignore pip warning in test_venv.test_with_venv().
2016-03-14 18:21:58 +01:00
Victor Stinner
3719779765
Merge 3.5 (test_site)
2016-03-14 17:47:30 +01:00
Victor Stinner
21d0e1b5fc
Skip test_site if USER_SITE cannot be created
...
Issue #17758 : Skip test_site if site.USER_SITE directory doesn't exist and
cannot be created.
2016-03-14 17:47:03 +01:00
Victor Stinner
b3adb1adeb
Issue #26516 : Fix test_capi on 32-bit system
...
On 32-bit system, only 4 bytes after dumped for the tail.
2016-03-14 17:40:09 +01:00
Victor Stinner
a1bc28a91d
Issue #26516 : Fix test_capi on Windows
...
Pointers are formatted differently.
2016-03-14 17:10:36 +01:00
Victor Stinner
34be807ca4
Add PYTHONMALLOC env var
...
Issue #26516 :
* Add PYTHONMALLOC environment variable to set the Python memory
allocators and/or install debug hooks.
* PyMem_SetupDebugHooks() can now also be used on Python compiled in release
mode.
* The PYTHONMALLOCSTATS environment variable can now also be used on Python
compiled in release mode. It now has no effect if set to an empty string.
* In debug mode, debug hooks are now also installed on Python memory allocators
when Python is configured without pymalloc.
2016-03-14 12:04:26 +01:00
Serhiy Storchaka
c877658d1f
Issue #20556 : Used specific assert methods in threading tests.
2016-03-14 10:40:14 +02:00
Serhiy Storchaka
8c0f0c5c1e
Issue #20556 : Used specific assert methods in threading tests.
2016-03-14 10:28:59 +02:00
Berker Peksag
04bc5b9e48
Issue #747320 : Use email.utils.formatdate() to avoid code duplication
...
in BaseHTTPRequestHandler
Initial patch by karlcow.
2016-03-14 06:06:03 +02:00
Berker Peksag
0647ef05eb
Issue #16181 : cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
2016-03-14 05:48:28 +02:00
Berker Peksag
20be53e5b5
Issue #16181 : cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
2016-03-14 05:48:02 +02:00
Serhiy Storchaka
6e4150f36b
Issue #23718 : Fixed parsing time in week 0 before Jan 1. Original patch by
...
Tamás Bence Gedai.
2016-03-12 10:53:09 +02:00
Serhiy Storchaka
8a7240eeed
Issue #23718 : Fixed parsing time in week 0 before Jan 1. Original patch by
...
Tamás Bence Gedai.
2016-03-12 10:51:16 +02:00
Victor Stinner
15a83e845f
Revert change 291d47954618
...
Revert:
"Always test datetime.strftime("%4Y")
Issue #13305 : Always test datetime.datetime.strftime("%4Y") for years < 1900."
In fact, strftime("%4Y") fails on most platforms.
2016-03-12 08:16:48 +01:00
Victor Stinner
25caed546d
Merge 3.5
2016-03-11 22:53:15 +01:00
Victor Stinner
d7569637b5
Issue #20589 : Fix test_pathlib
2016-03-11 22:53:00 +01:00
Victor Stinner
474ebbbe50
Always test datetime.strftime("%4Y")
...
Issue #13305 : Always test datetime.datetime.strftime("%4Y") for years < 1900.
2016-03-11 22:36:14 +01:00
Berker Peksag
d0e9b6919f
Issue #20589 : Invoking Path.owner() and Path.group() on Windows now raise
...
NotImplementedError instead of ImportError.
2016-03-11 23:08:11 +02:00
Berker Peksag
04d4229719
Issue #20589 : Invoking Path.owner() and Path.group() on Windows now raise
...
NotImplementedError instead of ImportError.
2016-03-11 23:07:27 +02:00
Serhiy Storchaka
786e922054
Issue #25911 : Tring to silence deprecation warnings in bytes path walk tests.
2016-03-08 21:26:44 +02:00
Serhiy Storchaka
ada6db7870
Issue #25911 : Tring to silence deprecation warnings in bytes path walk tests.
2016-03-08 21:26:26 +02:00
Serhiy Storchaka
706379ae0d
Backed out changeset da020e408c7f
2016-03-08 21:16:47 +02:00
Serhiy Storchaka
7ab61ae8aa
Backed out changeset f9e22717722d
2016-03-08 21:15:43 +02:00
Serhiy Storchaka
adca8464b1
Backed out changeset 19a3e0e664af
2016-03-08 21:13:35 +02:00
Serhiy Storchaka
674e2d0ea0
Issue #15068 : Got rid of excessive buffering in fileinput.
...
The bufsize parameter is now deprecated and ignored.
2016-03-08 18:35:19 +02:00
Serhiy Storchaka
cc2dbc5844
Issue #15068 : Got rid of excessive buffering in the fileinput module.
...
The bufsize parameter is no longer used.
2016-03-08 18:28:36 +02:00
Serhiy Storchaka
238fecd75c
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:12:46 +02:00
Serhiy Storchaka
55e3218eee
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:12:09 +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
Raymond Hettinger
20b3e72b8d
Merge
2016-03-06 18:12:08 -08:00
Raymond Hettinger
e525ee3b48
Document another recipe for itertools: all_equal(). Inspired by David Beazley.
2016-03-06 18:11:38 -08:00
Alexander Belopolsky
a2998a63c8
Closes #19475 : Added timespec to the datetime.isoformat() method.
...
Added an optional argument timespec to the datetime isoformat() method
to choose the precision of the time component.
Original patch by Alessandro Cucci.
2016-03-06 14:58:43 -05:00
Berker Peksag
d07a1cb53b
Issue #26489 : Add dictionary unpacking support to Tools/parser/unparse.py
...
Patch by Guo Ci Teo.
2016-03-06 16:50:44 +02:00
Berker Peksag
d66dd5ce68
Issue #26489 : Add dictionary unpacking support to Tools/parser/unparse.py
...
Patch by Guo Ci Teo.
2016-03-06 16:50:15 +02:00
Berker Peksag
48238c7e37
Issue #2202 : Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
...
Raise ValueError if algorithm is not MD5 or SHA.
Initial patch by Mathieu Dupuy.
2016-03-06 16:17:47 +02:00
Berker Peksag
e88dd1c32c
Issue #2202 : Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
...
Raise ValueError if algorithm is not MD5 or SHA.
Initial patch by Mathieu Dupuy.
2016-03-06 16:16:40 +02:00
Serhiy Storchaka
8cc859c103
Issue #26167 : Backported copy tests.
2016-03-06 15:03:07 +02:00
Serhiy Storchaka
818e18dd94
Issue #26167 : Minimized overhead in copy.copy() and copy.deepcopy().
...
Optimized copying and deepcopying bytearrays, NotImplemented, slices,
short lists, tuples, dicts, sets.
2016-03-06 14:56:57 +02:00
Serhiy Storchaka
de128e19e2
Issue #26015 : Added new tests for pickling iterators of mutable sequences.
2016-03-06 14:12:04 +02:00
Serhiy Storchaka
aabafe7bc2
Issue #26015 : Added new tests for pickling iterators of mutable sequences.
2016-03-06 14:10:24 +02:00