Skip to content

Commit 8d3efc5

Browse files
committed
Remove explicit inheritance from object in test suite
1 parent 30f49d9 commit 8d3efc5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎test/lib/helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def fixture(name):
6565
# { Adapters
6666

6767

68-
class StringProcessAdapter(object):
68+
class StringProcessAdapter:
6969
"""Allows strings to be used as process objects returned by subprocess.Popen.
7070
7171
This is tailored to work with the test system only.

‎test/test_index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ def test_add_a_file_with_wildcard_chars(self, rw_dir):
868868
def test__to_relative_path_at_root(self):
869869
root = osp.abspath(os.sep)
870870

871-
class Mocked(object):
871+
class Mocked:
872872
bare = False
873873
git_dir = root
874874
working_tree_dir = root

‎test/test_submodule.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ def test_branch_renames(self, rw_dir):
10441044

10451045
@skipUnless(is_win, "Specifically for Windows.")
10461046
def test_to_relative_path_with_super_at_root_drive(self):
1047-
class Repo(object):
1047+
class Repo:
10481048
working_tree_dir = "D:\\"
10491049

10501050
super_repo = Repo()

0 commit comments

Comments
 (0)