catern / rsyscall

Process-independent interface to Linux system calls
67 stars 8 forks source link

trio_test_case: Merge internal version #7

Open geofft opened 2 years ago

geofft commented 2 years ago

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

catern commented 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.