fork download
  1. import unittest
  2.  
  3. class MyTest(unittest.TestCase):
  4. def test_phases(self):
  5. with self.subTest('Phase 1'):
  6. self.assertTrue(False)
  7. with self.subTest('Phase 2'):
  8. self.assertTrue(True)
  9.  
  10. if __name__ == '__main__':
  11. unittest.main()
Runtime error #stdin #stdout #stderr 0.05s 11824KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
======================================================================
FAIL: test_phases (__main__.MyTest) [Phase 1]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./prog.py", line 6, in test_phases
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (failures=1)