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

Decorator plugin doesn't work for methods on Python3 #22

Open
mkwiatkowski opened this issue Dec 1, 2014 · 2 comments
Open

Decorator plugin doesn't work for methods on Python3 #22

mkwiatkowski opened this issue Dec 1, 2014 · 2 comments

Comments

@mkwiatkowski
Copy link
Owner

Notice the difference in behavior:

$ nosetests --decorator-file examples/test_decorator.attribs examples/test_decorator.py -a meth_one
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
$ nosetests-3.4 --decorator-file examples/test_decorator.attribs examples/test_decorator.py -a meth_one

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

It may be related to how different instance methods behave under Python 3, this piece of code in particular.

@little-dude
Copy link
Contributor

Sorry for breakage, I didn't try with python3... I'll try to look at it this week end.

@mkwiatkowski
Copy link
Owner Author

Oh, it's not your fault @little-dude . __dict__ has been used in this piece of code from the beginning. I just noticed this problem when merging in your changes.

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