]> granicus.if.org Git - python/commitdiff
Issue #22153: Improve unittest docs. Patch from Martin Panter and evilzero.
authorRobert Collins <rbtcollins@hp.com>
Wed, 22 Jul 2015 18:39:06 +0000 (06:39 +1200)
committerRobert Collins <rbtcollins@hp.com>
Wed, 22 Jul 2015 18:39:06 +0000 (06:39 +1200)
1  2 
Doc/library/unittest.rst
Misc/ACKS
Misc/NEWS

index cfce0199c5da0e9a57d2ef6d438d9c8eb9f8f105,f13100c9f8511dc2ee8a3c7f9d1c2af9b7a72137..508570314f81ea56e46940b8191fb93dd0927424
@@@ -1572,8 -1549,14 +1570,14 @@@ Loading and running test
        Return a suite of all tests cases contained in the :class:`TestCase`\ -derived
        :class:`testCaseClass`.
  
+       A test case instance is created for each method named by
+       :meth:`getTestCaseNames`. By default these are the method names
+       beginning with ``test``. If :meth:`getTestCaseNames` returns no
+       methods, but the :meth:`runTest` method is implemented, a single test
+       case is created for that method instead.
  
 -   .. method:: loadTestsFromModule(module)
 +   .. method:: loadTestsFromModule(module, pattern=None)
  
        Return a suite of all tests cases contained in the given module. This
        method searches *module* for classes derived from :class:`TestCase` and
diff --cc Misc/ACKS
index 2dc641154d0b39789336516727e08d0537ed48de,a6a9a9d92a5e60012f3b4f8b5fbaf2db2ea03002..e3d3448c8ced522b766423e09cde9ac071bbe68d
+++ b/Misc/ACKS
@@@ -1581,6 -1533,6 +1581,7 @@@ Tarek ZiadÃ
  Gennadiy Zlobin
  Doug Zongker
  Peter Åstrand
 +Ignacio Rossi
  Laurent De Buyst
  Nicola Palumbo
+ evilzero
diff --cc Misc/NEWS
index ba27a559729c8fd1804a77e723ebe1131c8d4054,d38c4146f5a742efa16e8801821185c7a9138aaa..4e43e773b5c5b6e317b619026b2ad6d4ce9d981a
+++ b/Misc/NEWS
@@@ -10,90 -10,80 +10,92 @@@ Release date: 2015-07-2
  Core and Builtins
  -----------------
  
 -- Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray
 -  object now always allocates place for trailing null byte and it's buffer now
 -  is always null-terminated.
 +- Issue #23573: Restored optimization of bytes.rfind() and bytearray.rfind()
 +  for single-byte argument on Linux.
  
 -- Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),
 -  PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
 -  to check for and handle errors correctly.
 +- Issue #24569: Make PEP 448 dictionary evaluation more consistent.
  
 -- Issue #24257: Fixed system error in the comparison of faked
 -  types.SimpleNamespace.
 +- Issue #24583: Fix crash when set is mutated while being updated.
  
 -- Issue #22939: Fixed integer overflow in iterator object.  Patch by
 -  Clement Rouault.
 +- Issue #24407: Fix crash when dict is mutated while being updated.
  
 -- Issue #23985: Fix a possible buffer overrun when deleting a slice from
 -  the front of a bytearray and then appending some other bytes data.
 +- Issue #24619: New approach for tokenizing async/await. As a consequence,
 +  is is now possible to have one-line 'async def foo(): await ..' functions.
  
 -- Issue #24102: Fixed exception type checking in standard error handlers.
 +Library
 +-------
  
 -- Issue #23757:  PySequence_Tuple() incorrectly called the concrete list API
 -  when the data was a list subclass.
++- Issue #22153: Improve unittest docs. Patch from Martin Panter and evilzero.
 -- Issue #24407: Fix crash when dict is mutated while being updated.
 +- Issue #24580: Symbolic group references to open group in re patterns now are
 +  explicitly forbidden as well as numeric group references.
  
 -- Issue #24096: Make warnings.warn_explicit more robust against mutation of the
 -  warnings.filters list.
 +- Issue #24206: Fixed __eq__ and __ne__ methods of inspect classes.
  
 -- Issue #23996: Avoid a crash when a delegated generator raises an
 -  unnormalized StopIteration exception.  Patch by Stefan Behnel.
 +- Issue #24631: Fixed regression in the timeit module with multiline setup.
  
 -- Issue #24022: Fix tokenizer crash when processing undecodable source code.
 +- Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
 +  Patch from Nicola Palumbo and Laurent De Buyst.
  
 -- Issue #23309: Avoid a deadlock at shutdown if a daemon thread is aborted
 -  while it is holding a lock to a buffered I/O object, and the main thread
 -  tries to use the same I/O object (typically stdout or stderr).  A fatal
 -  error is emitted instead.
 +- Issue #23661: unittest.mock side_effects can now be exceptions again. This
 +  was a regression vs Python 3.4. Patch from Ignacio Rossi
  
 -- Issue #22977: Fixed formatting Windows error messages on Wine.
 -  Patch by Martin Panter.
 +- Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
  
 -- Issue #23803: Fixed str.partition() and str.rpartition() when a separator
 -  is wider then partitioned string.
 +- Issue #18684: Fixed reading out of the buffer in the re module.
  
 -- Issue #23192: Fixed generator lambdas.  Patch by Bruno Cauet.
 +- Issue #24259: tarfile now raises a ReadError if an archive is truncated
 +  inside a data segment.
  
 -- Issue #23629: Fix the default __sizeof__ implementation for variable-sized
 -  objects.
 +- Issue #15014: SMTP.auth() and SMTP.login() now support RFC 4954's optional
 +  initial-response argument to the SMTP AUTH command.
  
 -- Issue #24044: Fix possible null pointer dereference in list.sort in out of
 -  memory conditions.
 +- Issue #24669: Fix inspect.getsource() for 'async def' functions.
 +  Patch by Kai Groner.
  
 -- Issue #21354: PyCFunction_New function is exposed by python DLL again.
 +Build
 +-----
  
 -Library
 --------
 +- Issue #24603: Update the Windows build to use OpenSSL 1.0.2d.
  
 -- Issue #22153: Improve unittest docs. Patch from Martin Panter and evilzero.
  
 -- Issue #24206: Fixed __eq__ and __ne__ methods of inspect classes.
 +What's New in Python 3.5.0 beta 3?
 +==================================
  
 -- Issue #21750: mock_open.read_data can now be read from each instance, as it
 -  could in Python 3.3.
 +Release date: 2015-07-05
  
 -- Issue #23247: Fix a crash in the StreamWriter.reset() of CJK codecs.
 +Core and Builtins
 +-----------------
  
 -- Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
 -  Patch from Nicola Palumbo and Laurent De Buyst.
 +- Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray
 +  object now always allocates place for trailing null byte and it's buffer now
 +  is always null-terminated.
  
 -- Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
 +- Upgrade to Unicode 8.0.0.
  
 -- Issue #18684: Fixed reading out of the buffer in the re module.
 +- Issue #24345: Add Py_tp_finalize slot for the stable ABI.
  
 -- Issue #24259: tarfile now raises a ReadError if an archive is truncated
 -  inside a data segment.
 +- Issue #24400: Introduce a distinct type for PEP 492 coroutines; add
 +  types.CoroutineType, inspect.getcoroutinestate, inspect.getcoroutinelocals;
 +  coroutines no longer use CO_GENERATOR flag; sys.set_coroutine_wrapper
 +  works only for 'async def' coroutines; inspect.iscoroutine no longer
 +  uses collections.abc.Coroutine, it's intended to test for pure 'async def'
 +  coroutines only; add new opcode: GET_YIELD_FROM_ITER; fix generators wrapper
 +  used in types.coroutine to be instance of collections.abc.Generator;
 +  collections.abc.Awaitable and collections.abc.Coroutine can no longer
 +  be used to detect generator-based coroutines--use inspect.isawaitable
 +  instead.
 +
 +- Issue #24450: Add gi_yieldfrom to generators and cr_await to coroutines.
 +  Contributed by Benno Leslie and Yury Selivanov.
 +
 +- Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.
 +
 +Library
 +-------
 +
 +- Issue #21750: mock_open.read_data can now be read from each instance, as it
 +  could in Python 3.3.
  
  - Issue #24552: Fix use after free in an error case of the _pickle module.