Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 008cd2b

Browse filesBrowse files
Restore "With" in other names.
1 parent e98e19e commit 008cd2b
Copy full SHA for 008cd2b

File tree

Expand file treeCollapse file tree

2 files changed

+8
-8
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-8
lines changed

‎Lib/test/test_typing.py

Copy file name to clipboardExpand all lines: Lib/test/test_typing.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3251,14 +3251,14 @@ def x(self): pass
32513251
class EmptyProtocol(Protocol): pass
32523252

32533253
@runtime_checkable
3254-
class SupportsStartswith(Protocol):
3254+
class SupportsStartsWith(Protocol):
32553255
def startswith(self, x: str) -> bool: ...
32563256

32573257
@runtime_checkable
32583258
class SupportsX(Protocol[T]):
32593259
def x(self): ...
32603260

3261-
for proto in EmptyProtocol, SupportsStartswith, SupportsX:
3261+
for proto in EmptyProtocol, SupportsStartsWith, SupportsX:
32623262
with self.subTest(proto=proto.__name__):
32633263
self.assertIsSubclass(proto, Protocol)
32643264

@@ -3272,8 +3272,8 @@ def x(self): ...
32723272
self.assertNotIsSubclass(object, Protocol)
32733273
self.assertNotIsInstance(object(), Protocol)
32743274

3275-
self.assertIsSubclass(str, SupportsStartswith)
3276-
self.assertIsInstance('foo', SupportsStartswith)
3275+
self.assertIsSubclass(str, SupportsStartsWith)
3276+
self.assertIsInstance('foo', SupportsStartsWith)
32773277
self.assertNotIsSubclass(str, Protocol)
32783278
self.assertNotIsInstance('foo', Protocol)
32793279

‎Lib/test/test_unittest/test_case.py

Copy file name to clipboardExpand all lines: Lib/test/test_unittest/test_case.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ def testAssertNoLogsYieldsNone(self):
19891989
pass
19901990
self.assertIsNone(value)
19911991

1992-
def testAssertStartswith(self):
1992+
def testAssertStartsWith(self):
19931993
self.assertStartsWith('ababahalamaha', 'ababa')
19941994
self.assertStartsWith('ababahalamaha', ('x', 'ababa', 'y'))
19951995
self.assertStartsWith(UserString('ababahalamaha'), 'ababa')
@@ -2034,7 +2034,7 @@ def testAssertStartswith(self):
20342034
self.assertStartsWith('ababahalamaha', 'amaha', msg='abracadabra')
20352035
self.assertIn('ababahalamaha', str(cm.exception))
20362036

2037-
def testAssertNotStartswith(self):
2037+
def testAssertNotStartsWith(self):
20382038
self.assertNotStartsWith('ababahalamaha', 'amaha')
20392039
self.assertNotStartsWith('ababahalamaha', ('x', 'amaha', 'y'))
20402040
self.assertNotStartsWith(UserString('ababahalamaha'), 'amaha')
@@ -2079,7 +2079,7 @@ def testAssertNotStartswith(self):
20792079
self.assertNotStartsWith('ababahalamaha', 'ababa', msg='abracadabra')
20802080
self.assertIn('ababahalamaha', str(cm.exception))
20812081

2082-
def testAssertEndswith(self):
2082+
def testAssertEndsWith(self):
20832083
self.assertEndsWith('ababahalamaha', 'amaha')
20842084
self.assertEndsWith('ababahalamaha', ('x', 'amaha', 'y'))
20852085
self.assertEndsWith(UserString('ababahalamaha'), 'amaha')
@@ -2124,7 +2124,7 @@ def testAssertEndswith(self):
21242124
self.assertEndsWith('ababahalamaha', 'ababa', msg='abracadabra')
21252125
self.assertIn('ababahalamaha', str(cm.exception))
21262126

2127-
def testAssertNotEndswith(self):
2127+
def testAssertNotEndsWith(self):
21282128
self.assertNotEndsWith('ababahalamaha', 'ababa')
21292129
self.assertNotEndsWith('ababahalamaha', ('x', 'ababa', 'y'))
21302130
self.assertNotEndsWith(UserString('ababahalamaha'), 'ababa')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.