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

Unified Diff: testing_support/trial_dir.py

Issue 8688011: Move auto_stub.py from commit-queue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 1 month 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 | « testing_support/auto_stub.py ('k') | tests/subprocess2_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing_support/trial_dir.py
diff --git a/testing_support/trial_dir.py b/testing_support/trial_dir.py
index 16fab8045c9610cbcfd204adb1cdac2a78a7a24b..1f2c9285a33c858404fc395b8419e5d8059405fb 100644
--- a/testing_support/trial_dir.py
+++ b/testing_support/trial_dir.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -9,7 +8,8 @@ import logging
import os
import sys
import tempfile
-import unittest
+
+from testing_support import auto_stub
import gclient_utils
@@ -79,15 +79,15 @@ class TrialDirMixIn(object):
return self.trial.root_dir
-class TestCase(unittest.TestCase, TrialDirMixIn):
+class TestCase(auto_stub.TestCase, TrialDirMixIn):
"""Base unittest class that cleans off a trial directory in tearDown()."""
def setUp(self):
- unittest.TestCase.setUp(self)
+ auto_stub.TestCase.setUp(self)
TrialDirMixIn.setUp(self)
def tearDown(self):
TrialDirMixIn.tearDown(self)
- unittest.TestCase.tearDown(self)
+ auto_stub.TestCase.tearDown(self)
if '-l' in sys.argv:
« no previous file with comments | « testing_support/auto_stub.py ('k') | tests/subprocess2_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698