From b616ee6a32d87686146c396f71e6f0724976e58a Mon Sep 17 00:00:00 2001 From: niphlod Date: Thu, 16 Oct 2014 20:56:24 +0200 Subject: [PATCH] fix for GAE tests often failing for no apparent reason --- gluon/tests/test_languages.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gluon/tests/test_languages.py b/gluon/tests/test_languages.py index 13f13a9d..60172fe9 100644 --- a/gluon/tests/test_languages.py +++ b/gluon/tests/test_languages.py @@ -35,6 +35,10 @@ try: #due to http://bugs.python.org/issue10845, testing multiprocessing in python is impossible if sys.platform.startswith('win'): MP_WORKING = 0 + #multiprocessing is also not available on GAE. Since tests randomly + #fail, let's not make them on it too + if 'datastore' in os.getenv('DB', ''): + MP_WORKING = 0 except ImportError: pass