Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary unittest2 requirement #11

Open
adamn opened this issue Sep 22, 2011 · 0 comments
Open

Unnecessary unittest2 requirement #11

adamn opened this issue Sep 22, 2011 · 0 comments

Comments

@adamn
Copy link

adamn commented Sep 22, 2011

In the tests, unittest2 is imported.

unittest2 shouldn't be a required package since users of python 2.7 don't need it. Typical methods of importing unittest2 include:

try:
    # check the system path first
    from unittest2 import *
except ImportError:
    if sys.version_info >= (2,7):
        # unittest2 features are native in Python 2.7
        from unittest import *

or

try:
    import unittest
    unittest.skip
except AttributeError:
    import unittest2 as unittest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant