You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nose looks for classes whose names begin with ‘Test’ and considers those tests to be run.
Perhaps your example would work as you would expect, if it had a name that did not being with 'Test'
From: Ara Bravo Condas <notifications@github.com<mailto:notifications@github.com>>
Reply-To: nose-devs/nose <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Monday, July 17, 2017 at 2:09 PM
To: nose-devs/nose <nose@noreply.github.com<mailto:nose@noreply.github.com>>
Cc: Subscribed <subscribed@noreply.github.com<mailto:subscribed@noreply.github.com>>
Subject: [nose-devs/nose] nosetests error "TypeError (Cannot extend enumerations)" (#1056)
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#1056>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AKsi7gSINUpIAVhFy2gEx1BsX3ueUau7ks5sO7F1gaJpZM4OaZ55>.
I've created a testsuite.py module that sets up a python testsuite. This module imports an enum class with 3 members:
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.
The text was updated successfully, but these errors were encountered: