<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/test/test_unittest, branch main</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>gh-68968: Correcting message display issue with assertEqual (#103937)</title>
<updated>2023-05-04T22:37:17+00:00</updated>
<author>
<name>Michael Blahay</name>
<email>mblahay@users.noreply.github.com</email>
</author>
<published>2023-05-04T22:37:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=46361bb84332800bc3632688e6ef3b4dd4a48723'/>
<id>46361bb84332800bc3632688e6ef3b4dd4a48723</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-62432: unittest runner: Exit code 5 if no tests were run (#102051)</title>
<updated>2023-04-27T01:28:46+00:00</updated>
<author>
<name>Stefano Rivera</name>
<email>stefano@rivera.za.net</email>
</author>
<published>2023-04-27T01:28:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=76632b836cf81a95301f4eb1fa43682e8d9ffa67'/>
<id>76632b836cf81a95301f4eb1fa43682e8d9ffa67</id>
<content type='text'>
As discussed in https://discuss.python.org/t/unittest-fail-if-zero-tests-were-discovered/21498/7

It is common for test runner misconfiguration to fail to find any tests,
This should be an error.

Fixes: #62432</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As discussed in https://discuss.python.org/t/unittest-fail-if-zero-tests-were-discovered/21498/7

It is common for test runner misconfiguration to fail to find any tests,
This should be an error.

Fixes: #62432</pre>
</div>
</content>
</entry>
<entry>
<title>gh-48330: address review comments to PR-12271 (#103209)</title>
<updated>2023-04-16T22:19:44+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2023-04-16T22:19:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ff3303e49c13495d8d9cf1dc0cf0624bbda1d3ae'/>
<id>ff3303e49c13495d8d9cf1dc0cf0624bbda1d3ae</id>
<content type='text'>
address review comments to PR-12271

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
address review comments to PR-12271

Signed-off-by: Giampaolo Rodola &lt;g.rodola@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-102978: Fix mock.patch function signatures for class and staticmethod decorators (#103228)</title>
<updated>2023-04-13T07:37:57+00:00</updated>
<author>
<name>Tomas R</name>
<email>tomas.roun8@gmail.com</email>
</author>
<published>2023-04-13T07:37:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=59e0de4903c02e72b329e505fddf1ad9794928bc'/>
<id>59e0de4903c02e72b329e505fddf1ad9794928bc</id>
<content type='text'>
Fixes unittest.mock.patch not enforcing function signatures for methods
decorated with @classmethod or @staticmethod when patch is called with
autospec=True.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes unittest.mock.patch not enforcing function signatures for methods
decorated with @classmethod or @staticmethod when patch is called with
autospec=True.</pre>
</div>
</content>
</entry>
<entry>
<title>gh-103329: Add regression test for PropertyMock with side effect (#103358)</title>
<updated>2023-04-08T02:09:00+00:00</updated>
<author>
<name>Russell Keith-Magee</name>
<email>russell@keith-magee.com</email>
</author>
<published>2023-04-08T02:09:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=26c65980dc6d842879d133165bb7c461d98cc6c7'/>
<id>26c65980dc6d842879d133165bb7c461d98cc6c7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-48330: assert warning is emitted on unittest.TestResult with no addDuration (#103309)</title>
<updated>2023-04-06T13:05:23+00:00</updated>
<author>
<name>Irit Katriel</name>
<email>1055913+iritkatriel@users.noreply.github.com</email>
</author>
<published>2023-04-06T13:05:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=52bc2e7b9d451821513a580a9b73c20cfdcf2b21'/>
<id>52bc2e7b9d451821513a580a9b73c20cfdcf2b21</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-4080: unittest durations (#12271)</title>
<updated>2023-04-02T22:12:51+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2023-04-02T22:12:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=6883007a86bdf0d7cf4560b949fd5e577dab1013'/>
<id>6883007a86bdf0d7cf4560b949fd5e577dab1013</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-102515: Remove unused imports in the `Lib/` directory (#102516)</title>
<updated>2023-03-08T11:45:38+00:00</updated>
<author>
<name>Alex Waygood</name>
<email>Alex.Waygood@Gmail.com</email>
</author>
<published>2023-03-08T11:45:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=401d7a7f009ca2e282b1a0d1b880dc602afd39dc'/>
<id>401d7a7f009ca2e282b1a0d1b880dc602afd39dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix up mock tests coverage (#100874)</title>
<updated>2023-01-09T10:08:56+00:00</updated>
<author>
<name>Chris Withers</name>
<email>chris@withers.org</email>
</author>
<published>2023-01-09T10:08:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=4e544eafcb603babe0db01270bd1c6d5d0f5d6ea'/>
<id>4e544eafcb603babe0db01270bd1c6d5d0f5d6ea</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-100690: Raise an AttributeError when the assert_ prefix is forgotten when using Mock (#100691)</title>
<updated>2023-01-06T18:38:50+00:00</updated>
<author>
<name>Christian Klein</name>
<email>167265+cklein@users.noreply.github.com</email>
</author>
<published>2023-01-06T18:38:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=1d4d677d1c90fcf4886ded0bf04b8f9d5b60b909'/>
<id>1d4d677d1c90fcf4886ded0bf04b8f9d5b60b909</id>
<content type='text'>
Mock objects which are not unsafe will now raise an AttributeError when accessing an
attribute that matches the name of an assertion but without the prefix `assert_`, e.g. accessing `called_once` instead of `assert_called_once`.

This is in addition to this already happening for accessing attributes with prefixes assert, assret, asert, aseert, and assrt.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mock objects which are not unsafe will now raise an AttributeError when accessing an
attribute that matches the name of an assertion but without the prefix `assert_`, e.g. accessing `called_once` instead of `assert_called_once`.

This is in addition to this already happening for accessing attributes with prefixes assert, assret, asert, aseert, and assrt.</pre>
</div>
</content>
</entry>
</feed>
