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

Unified Diff: infra_libs/ts_mon/common/test/helpers_test.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: fix remaining test problems Created 5 years, 4 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
Index: infra_libs/ts_mon/common/test/helpers_test.py
diff --git a/infra_libs/ts_mon/test/helpers_test.py b/infra_libs/ts_mon/common/test/helpers_test.py
similarity index 92%
rename from infra_libs/ts_mon/test/helpers_test.py
rename to infra_libs/ts_mon/common/test/helpers_test.py
index 2a070e74512460c9f860ee0577c43d1ba201ece6..2a74f28ff5095e360a0522adce84f2386b87a122 100755
--- a/infra_libs/ts_mon/test/helpers_test.py
+++ b/infra_libs/ts_mon/common/test/helpers_test.py
@@ -6,8 +6,12 @@ import unittest
import mock
-from infra_libs.ts_mon import helpers
-from infra_libs.ts_mon import metrics
+try:
+ from infra_libs.ts_mon.common import metrics
+ from infra_libs.ts_mon.common import helpers
+except ImportError:
+ from common import metrics
+ from common import helpers
class ScopedIncrementCounterTest(unittest.TestCase):

Powered by Google App Engine
This is Rietveld 408576698