MCPcopy Index your code
hub / github.com/python/cpython / test_double_bind

Method test_double_bind

Lib/test/test_asyncio/test_windows_events.py:114–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 b.close()
113
114 def test_double_bind(self):
115 ADDRESS = r'\\.\pipe\test_double_bind-%s' % os.getpid()
116 server1 = windows_events.PipeServer(ADDRESS)
117 with self.assertRaises(PermissionError):
118 windows_events.PipeServer(ADDRESS)
119 server1.close()
120
121 def test_pipe(self):
122 res = self.loop.run_until_complete(self._test_pipe())

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected