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

Unified Diff: testing_support/gerrit_test_case.py

Issue 2076613002: use py3 compatible octal constants (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 6 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 | testing_support/git_test_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing_support/gerrit_test_case.py
diff --git a/testing_support/gerrit_test_case.py b/testing_support/gerrit_test_case.py
index 087d0e18c5083d2a2d05ccb02043ca1df59cd5dd..9d5f643f395633cca94b71780609900ba1ecf1e3 100644
--- a/testing_support/gerrit_test_case.py
+++ b/testing_support/gerrit_test_case.py
@@ -155,7 +155,7 @@ class GerritTestCase(unittest.TestCase):
"""Sets up the gerrit instances in a class-specific temp dir."""
# Create gerrit instance.
gerrit_dir = tempfile.mkdtemp()
- os.chmod(gerrit_dir, 0700)
+ os.chmod(gerrit_dir, 0o0700)
gi = cls.gerrit_instance = cls._create_gerrit_instance(gerrit_dir)
# Set netrc file for http authentication.
@@ -188,7 +188,7 @@ class GerritTestCase(unittest.TestCase):
def setUp(self):
self.tempdir = tempfile.mkdtemp()
- os.chmod(self.tempdir, 0700)
+ os.chmod(self.tempdir, 0o0700)
def tearDown(self):
if TEARDOWN:
« no previous file with comments | « no previous file | testing_support/git_test_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698