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

  • SEARCH
  • Home
  • 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 4609398
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:58:52+00:00 2026-05-22T00:58:52+00:00

I suspect I failed to install nosetests correctly. I used easy_install nose – output

  • 0

I suspect I failed to install nosetests correctly.
I used easy_install nose – output was

Searching for nose
Best match: nose 1.0.0
Processing nose-1.0.0-py2.7.egg
nose 1.0.0 is already the active version in easy-install.pth
Installing nosetests-script.py script to C:\Python27\Scripts
Installing nosetests.exe script to C:\Python27\Scripts
Installing nosetests-2.7-script.py script to C:\Python27\Script
Installing nosetests-2.7.exe script to C:\Python27\Scripts

So it looks like it installs fine. But when I run nosetests -h

PS C:\Users\john\code\python> nosetests -h
Traceback (most recent call last):
  File "C:\Python27\Scripts\nosetests-script.py", line 9, in <module>
    load_entry_point('nose==1.0.0', 'console_scripts', 'nosetests')()
  File "C:\Python27\lib\site-packages\nose-1.0.0-py2.7.egg\nose\core.py", line 118, in __init__
    **extra_args)
TypeError: __init__() got an unexpected keyword argument 'exit'

Did I miss a setup step somehow?

  • 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-05-22T00:58:52+00:00Added an answer on May 22, 2026 at 12:58 am

    Weird. In nose/core.py the TestProgram constructor calls the parent constructor like this:

    ...
    extra_args = {}
    version = sys.version_info[0:2]
    if version >= (2,7) and version != (3,0):
        extra_args['exit'] = exit
    unittest.TestProgram.__init__(
        self, module=module, defaultTest=defaultTest,
        argv=argv, testRunner=testRunner, testLoader=testLoader,
        **extra_args)
    

    Constructor of TestProgram in unittest/main.py accepts the exit argument:

    class TestProgram(object):
        ...
        def __init__(self, module='__main__', defaultTest=None, argv=None,
                        testRunner=None, testLoader=loader.defaultTestLoader,
                        exit=True, verbosity=1, failfast=None, catchbreak=None,
                        buffer=None):
            ...
    

    So… I don’t know how this error could happen. Do you have more versions of Python installed? Is your nosetests really using the correct unittest module for Python 2.7? Can you look at unittest\main.py (somewhere in your C:\Python27) and check the TestProgram constructor, whether it has an exit argument?

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

Sidebar

Related Questions

How do I output a value as a number in php? I suspect I
I suspect that one of my applications eats more CPU cycles than I want
I suspect this applies to general ASP.Net too but I am not sure. If
I suspect that calls from separate threads (>15) are having a negative effect on
I suspect that adding a certain letter/character to the beginning of my text will
One day I suspect I'll have to learn hadoop and transfer all this data
My company has a problem: we suspect that the NACHA files we are receiving
I am creating a shared library using gcc and suspect that there may be
Just as in title. Is suspect it is, but I couldn't find it anywhere
I've notice an issue - it feels like a bug but I suspect a

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.