<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-coveragepy-git.git/tests/conftest.py, branch 6.2</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): simplify the logic of writing subcover.pth</title>
<updated>2021-11-21T18:27:38+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-21T18:27:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=ec0d4104d381c19f34255279c928637082ca80cd'/>
<id>ec0d4104d381c19f34255279c928637082ca80cd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test(fix): remove the subcover.pth file when the main session ends</title>
<updated>2021-11-21T16:10:21+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-21T15:44:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=dd8de3b0081190839dadfb83f038b701808594ec'/>
<id>dd8de3b0081190839dadfb83f038b701808594ec</id>
<content type='text'>
Leaving the pth file meant that the next igor run would start coverage, which
meant igor couldn't delete the C extension file on Windows.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Leaving the pth file meant that the next igor run would start coverage, which
meant igor couldn't delete the C extension file on Windows.
</pre>
</div>
</content>
</entry>
<entry>
<title>test(refactor): use pathlib for the pth files</title>
<updated>2021-11-21T14:07:00+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-21T14:07:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=1ac09127438adac06de02172e4fad34d7b096be3'/>
<id>1ac09127438adac06de02172e4fad34d7b096be3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test(fix): never delete the pth file</title>
<updated>2021-11-21T13:39:01+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-21T13:39:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=57768ee130fe2b0e7d1b27399ff2c73aa1cdbfe3'/>
<id>57768ee130fe2b0e7d1b27399ff2c73aa1cdbfe3</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>test: properly reset a few globals between every test</title>
<updated>2021-11-18T03:09:52+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-18T03:08:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=26b680d3d4253258161f1a20d556fbf3f3622581'/>
<id>26b680d3d4253258161f1a20d556fbf3f3622581</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: document the exceptions</title>
<updated>2021-11-14T12:44:57+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-14T00:00:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=342e7da2941ae5291f1a94b6ad66ce489f6985fe'/>
<id>342e7da2941ae5291f1a94b6ad66ce489f6985fe</id>
<content type='text'>
... and make some of them private.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... and make some of them private.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: force VirtualenvTest onto one worker to save time</title>
<updated>2021-11-02T10:57:26+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-11-02T10:30:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=5a6e090cf98e65050c372e0e4a58d42b8ced54f6'/>
<id>5a6e090cf98e65050c372e0e4a58d42b8ced54f6</id>
<content type='text'>
VirtualenvTest is slow because it has a session-scoped fixture that takes 10s to
run.  If all of those tests go to the same worker, we can reuse that fixture. If
they go to different workers, we have to spend that time more than once.

This is a hack which seems to work, but no guarantees into the future. Also, I
don't know why the VirtualenvTests aren't run first on their worker.

Time saved: about 10%, from ~50s to ~45s.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
VirtualenvTest is slow because it has a session-scoped fixture that takes 10s to
run.  If all of those tests go to the same worker, we can reuse that fixture. If
they go to different workers, we have to spend that time more than once.

This is a hack which seems to work, but no guarantees into the future. Also, I
don't know why the VirtualenvTests aren't run first on their worker.

Time saved: about 10%, from ~50s to ~45s.
</pre>
</div>
</content>
</entry>
<entry>
<title>debug: code we can enable to see where tests are running and in what order</title>
<updated>2021-10-30T20:47:54+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-30T20:47:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=40131f076c0784b331c6e0a5d8f88ff7b84b7296'/>
<id>40131f076c0784b331c6e0a5d8f88ff7b84b7296</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test: we really don't want to hear about imp being deprecated</title>
<updated>2021-10-12T21:09:51+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-12T21:06:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-coveragepy-git.git/commit/?id=de00789a23dc030fbbcd4814ff3478c307b70bb4'/>
<id>de00789a23dc030fbbcd4814ff3478c307b70bb4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
