Skip to content

Commit 5c334cc

Browse files
committed
Change mock pipe to mock socket. Hope to fix CPython issue 19750.
1 parent 061ef82 commit 5c334cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_unix_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def setUp(self):
379379
fstat_patcher = unittest.mock.patch('os.fstat')
380380
m_fstat = fstat_patcher.start()
381381
st = unittest.mock.Mock()
382-
st.st_mode = stat.S_IFIFO
382+
st.st_mode = stat.S_IFSOCK
383383
m_fstat.return_value = st
384384
self.addCleanup(fstat_patcher.stop)
385385

0 commit comments

Comments
 (0)