Python: Fix 'unused import' to no longer give alerts for imported modules used in doctests.

This commit is contained in:
Mark Shannon
2019-01-18 11:08:53 +00:00
parent f147b63bb8
commit 9f93bf8d17
4 changed files with 29 additions and 0 deletions

View File

@@ -61,3 +61,12 @@ import module1 as different
#Use it
different
import used_in_doctest
def f():
'''
>>> unrelated
>>> used_in_doctest.thing() == f()
True
'''
return 5