Command-line invocation of unittests from __main__ failing
问题 I am solving some exercises in Python and using unittest to automate some of the verification of my code. One program runs the single unittest just fine and it passes. The second gives the following error: $ python s1c6.py E ====================================================================== ERROR: s1c6 (unittest.loader._FailedTest) ---------------------------------------------------------------------- AttributeError: module '__main__' has no attribute 's1c6' ------------------------------