Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review
Remove unnecessary pass through self

Co-authored-by: Victor Stinner <[email protected]>
  • Loading branch information
cmaloney and vstinner authored Sep 3, 2025
commit 1ebd6ff095f9b679f45b6ec294596002e9221ff5
6 changes: 3 additions & 3 deletions Lib/test/test_io/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class CTestCase(unittest.TestCase):

# Use the class as a proxy to the io module members.
def __getattr__(self, name):
return getattr(self.io, name)
return getattr(io, name)


class PyTestCase(unittest.TestCase):
Expand All @@ -368,9 +368,9 @@ class PyTestCase(unittest.TestCase):
SlowFlushRawIO = PySlowFlushRawIO
MockCharPseudoDevFileIO = PyMockCharPseudoDevFileIO

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


class IOTest(unittest.TestCase):
Expand Down
Loading