diff options
Diffstat (limited to 'tests/test_functional.py')
-rw-r--r-- | tests/test_functional.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py index 968fbe6..c99876d 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -1501,7 +1501,8 @@ if hasattr(socket, "AF_UNIX"): try: self.sock.send(to_send) except OSError as exc: - self.assertEqual(get_errno(exc), errno.EPIPE) + valid_errors = {errno.EPIPE, errno.ENOTCONN} + self.assertIn(get_errno(exc), valid_errors) class UnixEchoTests(EchoTests, UnixTests, unittest.TestCase): pass |