Correct small bug with docs test.

This commit is contained in:
Mike Place 2017-02-27 09:59:25 -07:00
parent 3336dbc02a
commit b6dea5efb9
No known key found for this signature in database
GPG Key ID: 9136F4F13705CFD3

View File

@ -100,7 +100,7 @@ class SysModuleTest(integration.ModuleCase):
continue
if isinstance(docs, dict) and not isinstance(docs[fun], six.string_types):
nodoc.add(fun)
elif not re.search(r'([E|e]xample(?:s)?)+(?:.*)::?', docs[fun]):
elif isinstance(docs, dict) and not re.search(r'([E|e]xample(?:s)?)+(?:.*)::?', docs[fun]):
noexample.add(fun)
start += batch_size
end += batch_size