Skip to content

Commit e08f358

Browse files
committed
Naming
1 parent 97abda7 commit e08f358

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Lib/test/test_pathlib/test_read.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from test.test_pathlib.support.zip_path import ReadableZipPath, ZipPathGround
1010

1111

12-
class ReadablePathTest:
12+
class ReadablePathTestBase:
1313
def setUp(self):
1414
self.root = self.ground.setup()
1515
self.ground.create_hierarchy(self.root)
@@ -54,15 +54,15 @@ def test_read_text_with_newlines(self):
5454
self.assertEqual(p.read_text(newline='\r\n'), 'abcde\r\nfghlk\n\rmnopq')
5555

5656

57-
class ZipPathTest(ReadablePathTest, unittest.TestCase):
57+
class ZipPathTest(ReadablePathTestBase, unittest.TestCase):
5858
ground = ZipPathGround(ReadableZipPath)
5959

6060

61-
class LocalPathTest(ReadablePathTest, unittest.TestCase):
61+
class LocalPathTest(ReadablePathTestBase, unittest.TestCase):
6262
ground = LocalPathGround(ReadableLocalPath)
6363

6464

65-
class PathTest(ReadablePathTest, unittest.TestCase):
65+
class PathTest(ReadablePathTestBase, unittest.TestCase):
6666
ground = LocalPathGround(Path)
6767

6868

Lib/test/test_pathlib/test_write.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from test.test_pathlib.support.zip_path import WritableZipPath, ZipPathGround
1111

1212

13-
class WritablePathTest:
13+
class WritablePathTestBase:
1414
def setUp(self):
1515
self.root = self.ground.setup()
1616

@@ -89,15 +89,15 @@ def test_symlink_to(self):
8989
self.assertEqual(self.ground.readlink(link), 'fileA')
9090

9191

92-
class ZipPathTest(WritablePathTest, unittest.TestCase):
92+
class ZipPathTest(WritablePathTestBase, unittest.TestCase):
9393
ground = ZipPathGround(WritableZipPath)
9494

9595

96-
class LocalPathTest(WritablePathTest, unittest.TestCase):
96+
class LocalPathTest(WritablePathTestBase, unittest.TestCase):
9797
ground = LocalPathGround(WritableLocalPath)
9898

9999

100-
class PathTest(WritablePathTest, unittest.TestCase):
100+
class PathTest(WritablePathTestBase, unittest.TestCase):
101101
ground = LocalPathGround(Path)
102102

103103

0 commit comments

Comments
 (0)