diff --git a/doc/source/conf.py b/doc/source/conf.py
index 792ba40a41..a244ea09a1 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -80,7 +80,7 @@ release = version_info.release_string()
 
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
-exclude_patterns = []
+exclude_patterns = ['**tests**']
 
 # The reST default role (used for this markup: `text`) to use for all
 # documents.