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 8528585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:50:03+00:00 2026-06-11T08:50:03+00:00

Nose supports test generators . But the documentation says: Please note that method generators

  • 0

Nose supports test generators. But the documentation says:

Please note that method generators are not supported in
unittest.TestCase subclasses

This means all my test generators must be outside of unittest framework.

Question: should I still use the unittest framework for those tests where I can? Or should I, for consistency reasons, abandon unittest entirely?

And why doesn’t nose support test generators within unittest.TestCase? It seems to destroy the biggest advantage of nose: that it is an extension rather than a replacement for unittest, thus offering additional benefits without taking away any of the features provided by unittest. Or am I missing something?

And a related question. If I ditch unittest entirely, should I put my tests into global functions or into some new class hierarchy?

  • 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-11T08:50:05+00:00Added an answer on June 11, 2026 at 8:50 am

    In nose, the lack of support for funkier kinds of tests in unittest.TestCases is intentional — the idea was that nose should collect test from unittest.TestCases exactly as unittest does. Probably that was a bad idea, but it’s very unlikely to change now.

    So as long as you don’t mind being a bit out on the bleeding edge, I’d suggest trying nose2. nose2 doesn’t discriminate and supports all kinds of test plugins for all kinds of tests. Docs are on rtd: http://nose2.readthedocs.org/en/latest/index.html, downloads on pypi: http://pypi.python.org/pypi/nose2/0.4.1.

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

Sidebar

Related Questions

I used unittest and nose for unit-testing in Python but now I'm using py.test.
Is it possible to run nose test generators inside custom classes? I am trying
The answer to this is probably right under my nose, but I am not
It seems that if a testcase fails, nose will attempt to execute the next
I have a nose test that imports a file which runs a class with
I'm about to use nose as a method for test discovery on my already
I want to use nose to test an application that I am writing using
I would like to be able to run a nose test script which accepts
http://something.com:80/somedir/index.html?type=test;one=onevalue#nose This is typical URI structure my question is what is #nose and how
I am a bit lost here, solution could be lurking under my nose but

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.