Skip to content

Commit

Permalink
Ignore annotated functions in other modules
Browse files Browse the repository at this point in the history
Attrs package (which is used by pytest) added
type annotations to their stuff.
python-attrs/attrs#363
  • Loading branch information
Vlad-Shcherbina committed May 4, 2018
1 parent 59dc0d4 commit e01c016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hintcheck_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def test_locate_all_functions_that_need_hintcheck():
fs = {
f.function
for f in locate_all_functions_that_need_hintcheck()
if f.function.__module__ != '__main__'}
if f.function.__module__ == 'hintcheck_test'}
for q in fs:
print(q, q.__module__)
assert fs == {f, C.m, C.p.fget, C.rw.fget, C.rw.fset}
Expand Down

0 comments on commit e01c016

Please sign in to comment.