I'm trying to develop unit tests in Python using unittest from the Standard Library, and I want to try things out in the REPL. If I have the following code loaded
import unittest
class TestTrivial(unittest.TestCase):
def test_trivial(self):
self.assertEqual(1 + 1, 2)
self.assertFalse(2 + 2 == 5)
Then I can evaluate the following in the REPL:
unittest.main()
That spits out:
Ran 1 test in 0.000s
OK
Process Python finished
The problem is it killed the REPL. How do I run it without quitting the REPL?