Exclude dead code from coverage
diff --git a/OpenSSL/test/test_ssl.py b/OpenSSL/test/test_ssl.py
index 1560802..cb92020 100644
--- a/OpenSSL/test/test_ssl.py
+++ b/OpenSSL/test/test_ssl.py
@@ -1321,7 +1321,8 @@
context = Context(TLSv1_METHOD)
self.assertEquals(context.get_verify_mode(), 0)
context.set_verify(
- long(VERIFY_PEER | VERIFY_CLIENT_ONCE), lambda *args: None)
+ long(VERIFY_PEER | VERIFY_CLIENT_ONCE), lambda *args: None
+ ) # pragma: nocover
self.assertEquals(
context.get_verify_mode(), VERIFY_PEER | VERIFY_CLIENT_ONCE)
@@ -1724,7 +1725,10 @@
def advertise(conn):
raise TypeError
- def select(conn, options):
+ def select(conn, options): # pragma: nocover
+ """
+ Assert later that no args are actually appended.
+ """
select_args.append((conn, options))
return b''