summaryrefslogtreecommitdiffstats
path: root/chromium/build/android/gyp/util/md5_check_test.py
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-24 11:40:17 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-24 12:42:11 +0000
commit5d87695f37678f96492b258bbab36486c59866b4 (patch)
treebe9783bbaf04fb930c4d74ca9c00b5e7954c8bc6 /chromium/build/android/gyp/util/md5_check_test.py
parent6c11fb357ec39bf087b8b632e2b1e375aef1b38b (diff)
BASELINE: Update Chromium to 75.0.3770.56
Change-Id: I86d2007fd27a45d5797eee06f4c9369b8b50ac4f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/build/android/gyp/util/md5_check_test.py')
-rwxr-xr-xchromium/build/android/gyp/util/md5_check_test.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/chromium/build/android/gyp/util/md5_check_test.py b/chromium/build/android/gyp/util/md5_check_test.py
index 75ddf3e91ff..41e9d3c248c 100755
--- a/chromium/build/android/gyp/util/md5_check_test.py
+++ b/chromium/build/android/gyp/util/md5_check_test.py
@@ -4,11 +4,15 @@
# found in the LICENSE file.
import fnmatch
+import os
+import sys
import tempfile
import unittest
import zipfile
-import md5_check # pylint: disable=W0403
+sys.path.insert(
+ 0, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)))
+from util import md5_check
def _WriteZipFile(path, entries):
@@ -26,7 +30,7 @@ class TestMd5Check(unittest.TestCase):
input_strings = ['string1', 'string2']
input_file1 = tempfile.NamedTemporaryFile(suffix='.txt')
input_file2 = tempfile.NamedTemporaryFile(suffix='.zip')
- file1_contents = 'input file 1'
+ file1_contents = b'input file 1'
input_file1.write(file1_contents)
input_file1.flush()
# Test out empty zip file to start.