From d4aee6570b64c5b6de584b0a5ce76e6a139faf38 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 19 Oct 2023 05:13:32 -0400 Subject: 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 Reviewed-by: Aravind Vasudevan Tested-by: Mike Frysinger --- tests/test_git_command.py | 2 +- tests/test_project.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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): """Tests the GitCommand class .Wait()""" def setUp(self): - class MockPopen(object): + class MockPopen: rc = 0 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(): yield tempdir -class FakeProject(object): +class FakeProject: """A fake for Project for basic functionality.""" def __init__(self, worktree): -- cgit v1.2.3-54-g00ecf