Skip to content

Commit 1ebd6ff

Browse files
cmaloneyvstinner
andauthored
Apply suggestions from code review
Remove unnecessary pass through self Co-authored-by: Victor Stinner <[email protected]>
1 parent 751788f commit 1ebd6ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_io/test_general.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ class CTestCase(unittest.TestCase):
351351

352352
# Use the class as a proxy to the io module members.
353353
def __getattr__(self, name):
354-
return getattr(self.io, name)
354+
return getattr(io, name)
355355

356356

357357
class PyTestCase(unittest.TestCase):
@@ -368,9 +368,9 @@ class PyTestCase(unittest.TestCase):
368368
SlowFlushRawIO = PySlowFlushRawIO
369369
MockCharPseudoDevFileIO = PyMockCharPseudoDevFileIO
370370

371-
# Use the class as a proxy to the io module members.
371+
# Use the class as a proxy to the _pyio module members.
372372
def __getattr__(self, name):
373-
return getattr(self.io, name)
373+
return getattr(pyio, name)
374374

375375

376376
class IOTest(unittest.TestCase):

0 commit comments

Comments
 (0)