Skip to content
New issue

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

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

Already on GitHub? # to your account

Nested @switches don't work right #53

Open
brondsem opened this issue Jun 6, 2017 · 1 comment
Open

Nested @switches don't work right #53

brondsem opened this issue Jun 6, 2017 · 1 comment
Assignees

Comments

@brondsem
Copy link
Member

brondsem commented Jun 6, 2017

If a function has @switches(foo=False) and calls another function which also has that decorator, the patches get messed up and you can end up with the wrong value. Didn't dig into it much, but in this case was getting a truthy value when it should've been False.

@kadams54
Copy link
Member

kadams54 commented Jun 6, 2017

OK. I'll dig into it more, but if you want to whip a test case, I won't complain ;-)

@kadams54 kadams54 self-assigned this Jun 6, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants