<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-coveragepy-git.git/tests/test_process.py, branch nedbat/bug1283</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>test(refactor): if two skips apply, put the more significant reason closer to the def</title>
<updated>2021-11-21T14:46:42+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-21T14:46:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=39a2b1b171d7571a8ac87bbcf220d29ea5548018'/>
<id>39a2b1b171d7571a8ac87bbcf220d29ea5548018</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(test): make .pth files once per session</title>
<updated>2021-11-21T13:15:29+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-21T12:44:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=0922240cfb5e549a83f56a12629a16ad3fe2b498'/>
<id>0922240cfb5e549a83f56a12629a16ad3fe2b498</id>
<content type='text'>
The old way, we made and deleted .pth file around each test.  This
caused problems because pth files are written to a common location
shared by all test workers, so tests would fail because pth files were
being deleted as other workers were trying to use them.

Now we make the pth file once per session.  There's still a chance that
a worker will be using a pth file just as another worker is ending and
removing it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The old way, we made and deleted .pth file around each test.  This
caused problems because pth files are written to a common location
shared by all test workers, so tests would fail because pth files were
being deleted as other workers were trying to use them.

Now we make the pth file once per session.  There's still a chance that
a worker will be using a pth file just as another worker is ending and
removing it.
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(test): move unicode handling tests to individual test files</title>
<updated>2021-11-21T00:36:58+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-20T23:46:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=7345085c3983f5f7d05f64da1af8e43da3dc5639'/>
<id>7345085c3983f5f7d05f64da1af8e43da3dc5639</id>
<content type='text'>
Eight fewer sub-processes
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Eight fewer sub-processes
</pre>
</div>
</content>
</entry>
<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>
</feed>
