Skip to content

Commit cf703c4

Browse files
committed
Add expected failures to errored/failed tests
1 parent 21af8a7 commit cf703c4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Lib/test/test_asyncore.py

+26
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ def setUp(self):
323323
def tearDown(self):
324324
asyncore.close_all()
325325

326+
# TODO: RUSTPYTHON
327+
@unittest.expectedFailure
326328
@support.reap_threads
327329
def test_send(self):
328330
evt = threading.Event()
@@ -423,6 +425,8 @@ def test_resource_warning(self):
423425
f = None
424426
support.gc_collect()
425427

428+
# TODO: RUSTPYTHON
429+
@unittest.expectedFailure
426430
def test_close_twice(self):
427431
fd = os.open(support.TESTFN, os.O_RDONLY)
428432
f = asyncore.file_wrapper(fd)
@@ -513,6 +517,8 @@ def loop_waiting_for_flag(self, instance, timeout=5):
513517
time.sleep(timeout)
514518
self.fail("flag not set")
515519

520+
# TODO: RUSTPYTHON
521+
@unittest.expectedFailure
516522
def test_handle_connect(self):
517523
# make sure handle_connect is called on connect()
518524

@@ -524,6 +530,8 @@ def handle_connect(self):
524530
client = TestClient(self.family, server.address)
525531
self.loop_waiting_for_flag(client)
526532

533+
# TODO: RUSTPYTHON
534+
@unittest.expectedFailure
527535
def test_handle_accept(self):
528536
# make sure handle_accept() is called when a client connects
529537

@@ -543,6 +551,8 @@ def handle_accept(self):
543551
client = BaseClient(self.family, server.address)
544552
self.loop_waiting_for_flag(server)
545553

554+
# TODO: RUSTPYTHON
555+
@unittest.expectedFailure
546556
def test_handle_accepted(self):
547557
# make sure handle_accepted() is called when a client connects
548558

@@ -567,6 +577,8 @@ def handle_accepted(self, sock, addr):
567577
self.loop_waiting_for_flag(server)
568578

569579

580+
# TODO: RUSTPYTHON
581+
@unittest.expectedFailure
570582
def test_handle_read(self):
571583
# make sure handle_read is called on data received
572584

@@ -583,6 +595,8 @@ def __init__(self, conn):
583595
client = TestClient(self.family, server.address)
584596
self.loop_waiting_for_flag(client)
585597

598+
# TODO: RUSTPYTHON
599+
@unittest.expectedFailure
586600
def test_handle_write(self):
587601
# make sure handle_write is called
588602

@@ -594,6 +608,8 @@ def handle_write(self):
594608
client = TestClient(self.family, server.address)
595609
self.loop_waiting_for_flag(client)
596610

611+
# TODO: RUSTPYTHON
612+
@unittest.expectedFailure
597613
def test_handle_close(self):
598614
# make sure handle_close is called when the other end closes
599615
# the connection
@@ -618,6 +634,8 @@ def __init__(self, conn):
618634
client = TestClient(self.family, server.address)
619635
self.loop_waiting_for_flag(client)
620636

637+
# TODO: RUSTPYTHON
638+
@unittest.expectedFailure
621639
def test_handle_close_after_conn_broken(self):
622640
# Check that ECONNRESET/EPIPE is correctly handled (issues #5661 and
623641
# #11265).
@@ -650,6 +668,8 @@ def writable(self):
650668
client = TestClient(self.family, server.address)
651669
self.loop_waiting_for_flag(client)
652670

671+
# TODO: RUSTPYTHON
672+
@unittest.expectedFailure
653673
@unittest.skipIf(sys.platform.startswith("sunos"),
654674
"OOB support is broken on Solaris")
655675
def test_handle_expt(self):
@@ -676,6 +696,8 @@ def __init__(self, conn):
676696
client = TestClient(self.family, server.address)
677697
self.loop_waiting_for_flag(client)
678698

699+
# TODO: RUSTPYTHON
700+
@unittest.expectedFailure
679701
def test_handle_error(self):
680702

681703
class TestClient(BaseClient):
@@ -694,6 +716,8 @@ def handle_error(self):
694716
client = TestClient(self.family, server.address)
695717
self.loop_waiting_for_flag(client)
696718

719+
# TODO: RUSTPYTHON
720+
@unittest.expectedFailure
697721
def test_connection_attributes(self):
698722
server = BaseServer(self.family, self.addr)
699723
client = BaseClient(self.family, server.address)
@@ -767,6 +791,8 @@ def test_set_reuse_addr(self):
767791
self.assertTrue(s.socket.getsockopt(socket.SOL_SOCKET,
768792
socket.SO_REUSEADDR))
769793

794+
# TODO: RUSTPYTHON
795+
@unittest.expectedFailure
770796
@support.reap_threads
771797
def test_quick_connect(self):
772798
# see: http://bugs.python.org/issue10340

0 commit comments

Comments
 (0)