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

Already on GitHub? Sign in to your account

Unnecessary unittest2 requirement #11

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

Comments

Projects
None yet
1 participant

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