Open geofft opened 2 years ago
See https://github.com/catern/rsyscall/commits/trio-test-case for my revised merge of this. The main thing is simplifying the warnings throwing thing - I think now it's in a nicely upstreamable state (i.e. to unittest.TestCase) while still achieving everything that the colored log messages achieved.
Also, the top answer here is amusing... https://stackoverflow.com/questions/4398967/python-unit-testing-automatically-running-the-debugger-when-a-test-fails
I'd be happy pushing this now, or waiting if we want to look at it more.
This is mostly for discussion - this is our internal version of trio_test_case with various bells and whistles. I've lightly merged it to keep doctrings. The changes from the internal version are