diff --git a/tests/integration/modules/test_sysmod.py b/tests/integration/modules/test_sysmod.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/test_sysmod.py
+++ b/tests/integration/modules/test_sysmod.py
@@ -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
Correct small bug with docs test.