Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1526)

Unified Diff: build/android/test_runner.py

Issue 2891403002: Workaround python time.strptime flake in Android tests (Closed)
Patch Set: revert test_runner.pydeps to where the master is Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/test_runner.py
diff --git a/build/android/test_runner.py b/build/android/test_runner.py
index b21f7357e41dce3ca5340b55ff436a58355d9dcd..db27e4993ece3bcfa7c37cef88066fc848309b11 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -19,6 +19,11 @@ import threading
import traceback
import unittest
+# Import _strptime before threaded code. datetime.datetime.strptime is
+# threadsafe except for the initial import of the _strptime module.
+# See http://crbug.com/724524 and https://bugs.python.org/issue7980.
+import _strptime # pylint: disable=unused-import
+
from pylib.constants import host_paths
if host_paths.DEVIL_PATH not in sys.path:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698