Skip to content

Commit 65c230e

Browse files
sobolevnAA-Turner
andauthored
Apply suggestions from code review
Co-authored-by: Adam Turner <[email protected]>
1 parent b6453ad commit 65c230e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_string/test_templatelib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,14 @@ def test_pickle_interpolation(self):
120120

121121

122122
class TemplateIterTests(unittest.TestCase):
123-
def test_basic(self):
123+
def test_abc(self):
124124
self.assertIsInstance(iter(t''), Iterable)
125125
self.assertIsInstance(iter(t''), Iterator)
126126

127127
def test_final(self):
128+
TemplateIter = type(iter(t''))
128129
with self.assertRaisesRegex(TypeError, 'is not an acceptable base type'):
129-
class Sub(type(iter(t''))): ...
130+
class Sub(TemplateIter): ...
130131

131132
def test_iter(self):
132133
x = 1

0 commit comments

Comments
 (0)