<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-coveragepy-git.git/tests/test_process.py, branch nedbat/bug989</title>
<subtitle>github.com: nedbat/coveragepy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/'/>
<entry>
<title>refactor: add_lines only needs an iterable of ints</title>
<updated>2021-11-13T17:05:08+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-13T16:54:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=9a72bf4bc964bc8062627d6ecd6fb8c8d1e5dec6'/>
<id>9a72bf4bc964bc8062627d6ecd6fb8c8d1e5dec6</id>
<content type='text'>
The old code expected a dict with int keys, but iterables are simpler, so get
rid of a lot of dict.fromkeys() nonsense.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The old code expected a dict with int keys, but iterables are simpler, so get
rid of a lot of dict.fromkeys() nonsense.
</pre>
</div>
</content>
</entry>
<entry>
<title>test(fix): make the fullcoverage test work on 3.11</title>
<updated>2021-11-13T01:16:27+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-13T01:16:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=52efb4de5e9f0ff37eeda9471d7c3aa26edfdd38'/>
<id>52efb4de5e9f0ff37eeda9471d7c3aa26edfdd38</id>
<content type='text'>
It didn't work because the os module is frozen on 3.11, so it gets no
measurement.  Use -X to disable the frozen modules feature for the test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It didn't work because the os module is frozen on 3.11, so it gets no
measurement.  Use -X to disable the frozen modules feature for the test.
</pre>
</div>
</content>
</entry>
<entry>
<title>style: convert more string formatting to f-strings</title>
<updated>2021-11-11T12:23:36+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-11T12:23:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=1b94835aac3268a32bfa4ce0df585dbb97457a06'/>
<id>1b94835aac3268a32bfa4ce0df585dbb97457a06</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: CPython 3.11 support. #1241</title>
<updated>2021-11-10T23:45:37+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-10T12:39:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=9765493020e6292599e272978a25935dd4d0fa88'/>
<id>9765493020e6292599e272978a25935dd4d0fa88</id>
<content type='text'>
The fix for CTracer is egregious and will need to be updated when there's a
supported way to do it.

The fullcoverage skip is noted in
https://github.com/nedbat/coveragepy/issues/1278

The raise_through_with skip is noted in
https://github.com/nedbat/coveragepy/issues/1270
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The fix for CTracer is egregious and will need to be updated when there's a
supported way to do it.

The fullcoverage skip is noted in
https://github.com/nedbat/coveragepy/issues/1278

The raise_through_with skip is noted in
https://github.com/nedbat/coveragepy/issues/1270
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(test): convert eight tests to one parametrized test</title>
<updated>2021-11-07T23:22:06+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-07T23:22:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=2afc907abac4fe413ac53e6854d433e1c03bf720'/>
<id>2afc907abac4fe413ac53e6854d433e1c03bf720</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(test): use the expected name for initializing tests.</title>
<updated>2021-11-07T22:41:22+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-07T22:41:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=2a2293cafb6b322eb3329b5a7abd98435c56f361'/>
<id>2a2293cafb6b322eb3329b5a7abd98435c56f361</id>
<content type='text'>
Originally I used setup_test because something went wrong when I used setUp.  I
wrote https://github.com/pytest-dev/pytest/issues/8424 about it.  There they say
to use `-p no:nose` to disable nose interpretation.

But now I simply went back to setUp, and all seems well? Not sure what changed,
but using the expected name is better.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Originally I used setup_test because something went wrong when I used setUp.  I
wrote https://github.com/pytest-dev/pytest/issues/8424 about it.  There they say
to use `-p no:nose` to disable nose interpretation.

But now I simply went back to setUp, and all seems well? Not sure what changed,
but using the expected name is better.
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(test): make traceback checks a bit flexible</title>
<updated>2021-11-04T12:08:48+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-04T11:54:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=a89f40e4c01fcb6c5a50eb42dc372454446693eb'/>
<id>a89f40e4c01fcb6c5a50eb42dc372454446693eb</id>
<content type='text'>
Python 3.11 made a traceback look like this:

    Traceback (most recent call last):
      File "{path}", line 8, in &lt;module&gt;
        print(sys.argv[1])
              ~~~~~~~~^^^
    IndexError: list index out of range

We needed to not care if that tilde-caret line was present or not.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Python 3.11 made a traceback look like this:

    Traceback (most recent call last):
      File "{path}", line 8, in &lt;module&gt;
        print(sys.argv[1])
              ~~~~~~~~^^^
    IndexError: list index out of range

We needed to not care if that tilde-caret line was present or not.
</pre>
</div>
</content>
</entry>
<entry>
<title>test(fix): isolate excepthook tests from each other</title>
<updated>2021-11-02T12:12:51+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-02T11:50:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=87987b1237a85001965385875b3eaddb02da43be'/>
<id>87987b1237a85001965385875b3eaddb02da43be</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(test): the virtualenv tests deserve their own file</title>
<updated>2021-10-31T13:17:11+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-31T11:41:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=7589066bfe18bd6f26200895cc2e569128fafead'/>
<id>7589066bfe18bd6f26200895cc2e569128fafead</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(test): make re_lines (et al) look like re.search</title>
<updated>2021-10-28T10:59:03+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-28T10:59:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=81a55d102550b4535191756960f6846083fc7e30'/>
<id>81a55d102550b4535191756960f6846083fc7e30</id>
<content type='text'>
and also replace some calls with just-plain re.search.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and also replace some calls with just-plain re.search.
</pre>
</div>
</content>
</entry>
</feed>
