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

example doesn't respect verbosity #1521

Closed
sponster-au opened this issue Aug 27, 2018 · 1 comment · Fixed by #1580
Closed

example doesn't respect verbosity #1521

sponster-au opened this issue Aug 27, 2018 · 1 comment · Fixed by #1580
Assignees
Labels
bug something is clearly wrong here

Comments

@sponster-au
Copy link

sponster-au commented Aug 27, 2018

If using the @hypothesis.example decorator, the settings.default.verbosity is changed to Verbosity.normal.

The following test case currently fails:

def test_example_respects_verbosity():
    @settings(verbosity=Verbosity.verbose)
    @example(x=99)
    @given(integers())
    def test(x):
        assert settings.default.verbosity == Verbosity.verbose
    test()
@Zac-HD Zac-HD added the bug something is clearly wrong here label Aug 27, 2018
@Zac-HD
Copy link
Member

Zac-HD commented Sep 15, 2018

This is probably a subtle problem somewhere in our internal scoping, similar to #944.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is clearly wrong here
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants