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

nosetests error "TypeError (Cannot extend enumerations)" #1056

Closed
abcondas opened this issue Jul 17, 2017 · 2 comments
Closed

nosetests error "TypeError (Cannot extend enumerations)" #1056

abcondas opened this issue Jul 17, 2017 · 2 comments

Comments

@abcondas
Copy link

I've created a testsuite.py module that sets up a python testsuite. This module imports an enum class with 3 members:

# test_helper.py
class TestType(Enum):
    ONE = 1
    TWO = 2 
    THREE = 3
# testsuite.py
...
from test_helper import TestType
... create, add, and run testsuite

when I execute this module using nosetests I receive the error:
Failure: TypeError (Cannot extend enumerations) ... ERROR

nose seems to be doing discovery and attempts to extend the enum class which is not allowed in python. Seems like a bug. Please advise.

@datalogics-robb
Copy link

datalogics-robb commented Jul 17, 2017 via email

@abcondas
Copy link
Author

Thank you, Rob! That was it. I should have figured that out... (blush)

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

2 participants