diff options
| author | Mike Frysinger <vapier@google.com> | 2023-10-19 05:13:32 -0400 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-20 04:51:01 +0000 |
| commit | d4aee6570b64c5b6de584b0a5ce76e6a139faf38 (patch) | |
| tree | c70cfd687689cff85ca7682071ccd0c8f690536c /tests | |
| parent | 024df06ec15d7304fbb5f9a2b1aa44f2af9daf4c (diff) | |
| download | git-repo-d4aee6570b64c5b6de584b0a5ce76e6a139faf38.tar.gz | |
delete Python 2 (object) compat
Bug: 302871152
Change-Id: I39636d73a6e1d69efa8ade74f75c5381651e6dc8
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390054
Commit-Queue: Mike Frysinger <vapier@google.com>
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_git_command.py | 2 | ||||
| -rw-r--r-- | tests/test_project.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_git_command.py b/tests/test_git_command.py index 881cccb8..7c108ccd 100644 --- a/tests/test_git_command.py +++ b/tests/test_git_command.py | |||
| @@ -72,7 +72,7 @@ class GitCommandWaitTest(unittest.TestCase): | |||
| 72 | """Tests the GitCommand class .Wait()""" | 72 | """Tests the GitCommand class .Wait()""" |
| 73 | 73 | ||
| 74 | def setUp(self): | 74 | def setUp(self): |
| 75 | class MockPopen(object): | 75 | class MockPopen: |
| 76 | rc = 0 | 76 | rc = 0 |
| 77 | 77 | ||
| 78 | def __init__(self): | 78 | def __init__(self): |
diff --git a/tests/test_project.py b/tests/test_project.py index 79728d70..42f0f6e5 100644 --- a/tests/test_project.py +++ b/tests/test_project.py | |||
| @@ -48,7 +48,7 @@ def TempGitTree(): | |||
| 48 | yield tempdir | 48 | yield tempdir |
| 49 | 49 | ||
| 50 | 50 | ||
| 51 | class FakeProject(object): | 51 | class FakeProject: |
| 52 | """A fake for Project for basic functionality.""" | 52 | """A fake for Project for basic functionality.""" |
| 53 | 53 | ||
| 54 | def __init__(self, worktree): | 54 | def __init__(self, worktree): |
