Results 961 comments of Thomas Grainger

pytest and tox will both read from pyproject.toml

or maybe you could cheat and output ```python with pytest.raises(Exception) as ctx: sut() ctx.exception = ctx.value # TODO: replace all uses of ctx.exception with ctx.value assert "msg" in str(ctx.exception) ```

Might be worth updating pytest to provide a .exception property alias

@htgoebel I believe this is the smallest code change to fix this issue: https://github.com/pytest-dev/pytest/pull/5541

https://github.com/pytest-dev/unittest2pytest/blob/2c32cd693230d1b04de1d546d362d49fa891e7aa/README.rst#L78-L83 should probably be updated for when pytest-dev/pytest#5541 lands

to allow the reactor to re-run you'd need something like this: ```python from zope.interfaces.interface import Method, Attribute from twisted.internet import interfaces from twisted.python.runtime import platform def _default_reactor_factory(platform): try: if platform.isLinux():...

I've got a new version of this util now: https://gist.github.com/graingert/6dbde2a302c669e75c6fd57c1bc35944#file-twisted-py I use it for my test suite and it took a 22 minute build to ~15 minutes because we were...

yes, t.i.d.inlineCallbacks removes the fixture kwargs from the function it decorates, the documentation is here: https://github.com/pytest-dev/pytest-twisted#inlinecallbacks

@altendky this issue tracker is for bugs and feature suggestions, questions like this would be better addressed to https://webchat.freenode.net/#pylib or https://mail.python.org/mailman/listinfo/pytest-dev

note that `-x` and `--lf` work correctly with xdist: ``` graingert@onomastic:~/projects/foo$ cat tests/test_foo.py import pytest def test_1(): assert True def test_2(): assert True def test_3(): assert False def test_4(): assert...