From ea2e330e43c182dc16b0111ebc69ee5a71ee4ce1 Mon Sep 17 00:00:00 2001 From: Gavin Mak Date: Sat, 11 Mar 2023 06:46:20 +0000 Subject: Format codebase with black and check formatting in CQ Apply rules set by https://gerrit-review.googlesource.com/c/git-repo/+/362954/ across the codebase and fix any lingering errors caught by flake8. Also check black formatting in run_tests (and CQ). Bug: b/267675342 Change-Id: I972d77649dac351150dcfeb1cd1ad0ea2efc1956 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/363474 Reviewed-by: Mike Frysinger Tested-by: Gavin Mak Commit-Queue: Gavin Mak --- tests/test_update_manpages.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/test_update_manpages.py') diff --git a/tests/test_update_manpages.py b/tests/test_update_manpages.py index 0de85be9..12b19ec4 100644 --- a/tests/test_update_manpages.py +++ b/tests/test_update_manpages.py @@ -20,9 +20,9 @@ from release import update_manpages class UpdateManpagesTest(unittest.TestCase): - """Tests the update-manpages code.""" + """Tests the update-manpages code.""" - def test_replace_regex(self): - """Check that replace_regex works.""" - data = '\n\033[1mSummary\033[m\n' - self.assertEqual(update_manpages.replace_regex(data),'\nSummary\n') + def test_replace_regex(self): + """Check that replace_regex works.""" + data = "\n\033[1mSummary\033[m\n" + self.assertEqual(update_manpages.replace_regex(data), "\nSummary\n") -- cgit v1.2.3-54-g00ecf