We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 751788f commit 1ebd6ffCopy full SHA for 1ebd6ff
Lib/test/test_io/test_general.py
@@ -351,7 +351,7 @@ class CTestCase(unittest.TestCase):
351
352
# Use the class as a proxy to the io module members.
353
def __getattr__(self, name):
354
- return getattr(self.io, name)
+ return getattr(io, name)
355
356
357
class PyTestCase(unittest.TestCase):
@@ -368,9 +368,9 @@ class PyTestCase(unittest.TestCase):
368
SlowFlushRawIO = PySlowFlushRawIO
369
MockCharPseudoDevFileIO = PyMockCharPseudoDevFileIO
370
371
- # Use the class as a proxy to the io module members.
+ # Use the class as a proxy to the _pyio module members.
372
373
+ return getattr(pyio, name)
374
375
376
class IOTest(unittest.TestCase):
0 commit comments