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

Unified Diff: gm/rebaseline_server/imagepair_test.py

Issue 397103003: combine base_unittest.py modules from gm and tools (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: pylint Created 6 years, 5 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: gm/rebaseline_server/imagepair_test.py
diff --git a/gm/rebaseline_server/imagepair_test.py b/gm/rebaseline_server/imagepair_test.py
index 14fe4c1143dbab8437ffc637f50609a4e8b8d307..ef7695acacc80af6e9873cb4e3ea8aba42de36ba 100755
--- a/gm/rebaseline_server/imagepair_test.py
+++ b/gm/rebaseline_server/imagepair_test.py
@@ -26,11 +26,11 @@ IMG_URL_BASE = ('http://chromium-skia-gm.commondatastorage.googleapis.com/'
class ImagePairTest(unittest.TestCase):
def setUp(self):
- self._temp_dir = tempfile.mkdtemp()
+ self.temp_dir = tempfile.mkdtemp()
self.maxDiff = None
def tearDown(self):
- shutil.rmtree(self._temp_dir)
+ shutil.rmtree(self.temp_dir)
def shortDescription(self):
"""Tells unittest framework to not print docstrings for test cases."""
@@ -163,7 +163,7 @@ class ImagePairTest(unittest.TestCase):
],
]
- db = imagediffdb.ImageDiffDB(self._temp_dir)
+ db = imagediffdb.ImageDiffDB(self.temp_dir)
for selftest in selftests:
image_pair = imagepair.ImagePair(
image_diff_db=db,

Powered by Google App Engine
This is Rietveld 408576698