summaryrefslogtreecommitdiffstats
path: root/Lib/test/pydocfodder.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-26 11:27:18 (GMT)
committerGitHub <noreply@github.com>2023-12-26 11:27:18 (GMT)
commit1cf576a358d2020ca230f1471c62b3379ab97193 (patch)
tree8fd00d02bc424a49f8553382496da449f19b7619 /Lib/test/pydocfodder.py
parent8a95500367dbf3476f57c956331712fdd64f8146 (diff)
downloadcpython-1cf576a358d2020ca230f1471c62b3379ab97193.zip
cpython-1cf576a358d2020ca230f1471c62b3379ab97193.tar.gz
cpython-1cf576a358d2020ca230f1471c62b3379ab97193.tar.bz2
[3.12] gh-113468: Remove the "_new_ suffix from class names in pydocfodder (GH-113469) (GH-113483)
(cherry picked from commit 8a3d0e4a661e6c27e4c17c818ce4187a36579e5f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/test/pydocfodder.py')
-rw-r--r--Lib/test/pydocfodder.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/pydocfodder.py b/Lib/test/pydocfodder.py
index d0750e5..a3ef223 100644
--- a/Lib/test/pydocfodder.py
+++ b/Lib/test/pydocfodder.py
@@ -2,8 +2,8 @@
import types
-class A_new:
- "A new-style class."
+class A:
+ "A class."
def A_method(self):
"Method defined in A."
@@ -41,8 +41,8 @@ class A_new:
A_int_alias = int
-class B_new(A_new):
- "A new-style class, derived from A_new."
+class B(A):
+ "A class, derived from A."
def AB_method(self):
"Method defined in A and B."
@@ -61,8 +61,8 @@ class B_new(A_new):
def BCD_method(self):
"Method defined in B, C and D."
-class C_new(A_new):
- "A new-style class, derived from A_new."
+class C(A):
+ "A class, derived from A."
def AC_method(self):
"Method defined in A and C."
@@ -81,8 +81,8 @@ class C_new(A_new):
def CD_method(self):
"Method defined in C and D."
-class D_new(B_new, C_new):
- """A new-style class, derived from B_new and C_new.
+class D(B, C):
+ """A class, derived from B and C.
"""
def AD_method(self):