@@ -1579,7 +1579,8 @@ def test_local_close_connection_lost_timeout_after_write_eof(self):
1579
1579
self .receive_frame (self .close_frame )
1580
1580
self .run_loop_once ()
1581
1581
self .loop .run_until_complete (self .protocol .close (reason = "close" ))
1582
- self .assertConnectionClosed (1000 , "close" )
1582
+ # Due to a bug in coverage, this is erroneously reported as not covered.
1583
+ self .assertConnectionClosed (1000 , "close" ) # pragma: no cover
1583
1584
1584
1585
def test_local_close_connection_lost_timeout_after_close (self ):
1585
1586
self .protocol .close_timeout = 10 * MS
@@ -1596,7 +1597,8 @@ def test_local_close_connection_lost_timeout_after_close(self):
1596
1597
self .receive_frame (self .close_frame )
1597
1598
self .run_loop_once ()
1598
1599
self .loop .run_until_complete (self .protocol .close (reason = "close" ))
1599
- self .assertConnectionClosed (1000 , "close" )
1600
+ # Due to a bug in coverage, this is erroneously reported as not covered.
1601
+ self .assertConnectionClosed (1000 , "close" ) # pragma: no cover
1600
1602
1601
1603
1602
1604
class ClientTests (CommonTests , AsyncioTestCase ):
@@ -1614,7 +1616,8 @@ def test_local_close_send_close_frame_timeout(self):
1614
1616
# Check the timing within -1/+9ms for robustness.
1615
1617
with self .assertCompletesWithin (19 * MS , 29 * MS ):
1616
1618
self .loop .run_until_complete (self .protocol .close (reason = "close" ))
1617
- self .assertConnectionClosed (1006 , "" )
1619
+ # Due to a bug in coverage, this is erroneously reported as not covered.
1620
+ self .assertConnectionClosed (1006 , "" ) # pragma: no cover
1618
1621
1619
1622
def test_local_close_receive_close_frame_timeout (self ):
1620
1623
self .protocol .close_timeout = 10 * MS
@@ -1624,7 +1627,8 @@ def test_local_close_receive_close_frame_timeout(self):
1624
1627
# Check the timing within -1/+9ms for robustness.
1625
1628
with self .assertCompletesWithin (19 * MS , 29 * MS ):
1626
1629
self .loop .run_until_complete (self .protocol .close (reason = "close" ))
1627
- self .assertConnectionClosed (1006 , "" )
1630
+ # Due to a bug in coverage, this is erroneously reported as not covered.
1631
+ self .assertConnectionClosed (1006 , "" ) # pragma: no cover
1628
1632
1629
1633
def test_local_close_connection_lost_timeout_after_write_eof (self ):
1630
1634
self .protocol .close_timeout = 10 * MS
@@ -1639,7 +1643,8 @@ def test_local_close_connection_lost_timeout_after_write_eof(self):
1639
1643
self .receive_frame (self .close_frame )
1640
1644
self .run_loop_once ()
1641
1645
self .loop .run_until_complete (self .protocol .close (reason = "close" ))
1642
- self .assertConnectionClosed (1000 , "close" )
1646
+ # Due to a bug in coverage, this is erroneously reported as not covered.
1647
+ self .assertConnectionClosed (1000 , "close" ) # pragma: no cover
1643
1648
1644
1649
def test_local_close_connection_lost_timeout_after_close (self ):
1645
1650
self .protocol .close_timeout = 10 * MS
@@ -1659,4 +1664,5 @@ def test_local_close_connection_lost_timeout_after_close(self):
1659
1664
self .receive_frame (self .close_frame )
1660
1665
self .run_loop_once ()
1661
1666
self .loop .run_until_complete (self .protocol .close (reason = "close" ))
1662
- self .assertConnectionClosed (1000 , "close" )
1667
+ # Due to a bug in coverage, this is erroneously reported as not covered.
1668
+ self .assertConnectionClosed (1000 , "close" ) # pragma: no cover
0 commit comments