diff --git a/unittests/autoconfig.py b/unittests/autoconfig.py
index <HASH>..<HASH> 100644
--- a/unittests/autoconfig.py
+++ b/unittests/autoconfig.py
@@ -8,6 +8,9 @@ import sys
 import logging
 import warnings
 
+# Prevents copy.deepcopy RecursionError in some tests (Travis build)
+sys.setrecursionlimit(10000)
+
 this_module_dir_path = os.path.abspath(
     os.path.dirname(sys.modules[__name__].__file__))
Increase recursion limit for python, needed to fix travis build error

Three tests are failing in declarations_comparison_tester with:
RecursionError: maximum recursion depth exceeded

This is an attempt to fix it, it is not sure it will help.