Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:34:38+00:00 2026-06-18T03:34:38+00:00

Today I wrote a test and no matter what I did I couldn’t pass

  • 0

Today I wrote a test and no matter what I did I couldn’t pass the test.

then I discovered that I get SystemExit: False even without any test cases :

>>> ================================ RESTART ================================
>>> import unittest
>>> unittest.main()

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

Traceback (most recent call last):
  File "<pyshell#123>", line 1, in <module>
    unittest.main()
  File "C:\Python27x64\Lib\unittest\main.py", line 95, in __init__
    self.runTests()
  File "C:\Python27x64\Lib\unittest\main.py", line 231, in runTests
    sys.exit(not self.result.wasSuccessful())
SystemExit: False

Is this behavior normal? also:

>>> class aTest(unittest.TestCase):
    def test_123(self):
        self.assertEqual(2, 1+1)


>>> unittest.main()
.
----------------------------------------------------------------------
Ran 1 test in 0.011s

OK

Traceback (most recent call last):
  File "<pyshell#133>", line 1, in <module>
    unittest.main()
  File "C:\Python27x64\Lib\unittest\main.py", line 95, in __init__
    self.runTests()
  File "C:\Python27x64\Lib\unittest\main.py", line 231, in runTests
    sys.exit(not self.result.wasSuccessful())
SystemExit: False
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:34:39+00:00Added an answer on June 18, 2026 at 3:34 am

    You are trying to run the unit test in an interactive shell, which is probably not what the unittest module was meant to be used for. In particular, when the unittest finishes, it explicitly tries to exit “the program”, but as you run it from an interactive shell, this fails.

    Did you try putting the code in a file and running it (I tried your code from a .py file, and it seems to work without raising errors).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Earlier today I wrote a small test app for iteratees that composed an iteratee
I've been playing around with the pluto-test-framework today, and I'd like to get some
I've started playing with Lucene.NET today and I wrote a simple test method to
Today I was wondering about c++ destructors so I wrote a small test program.
I started to learn about Mockito only today. I wrote some simple test (with
Today I wrote a small predicate to find matching symbols in a container. But
I wrote some code today and It was changed by another developer who said
I wrote my first program in Haskell today. It compiles and runs successfully .
Ok, I wrote this question up earlier today but I decided to delete it
Well, today I ran into an oddity. I wrote my own version of GetProcAddress

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.