-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling missing hypothesmith gracefully
Fix test_mccabe not to fail to import if hypothesmith is not available. While the original code seems to attempt to handle missing hypothesmith, the file fails with NameError without it. This is because hypothesis decorators are used in global scope. Guard the whole test function to be defined only when hypothesmith is available.
- Loading branch information
Showing
1 changed file
with
36 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters