make our CI less frustrating (#926)

* make our CI less frustrating

* sigh, even less sensitive

* can we stop doing this on macos now?
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index 156ba21..dffd3b2 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -598,7 +598,7 @@
         `Context.use_privatekey` takes an `OpenSSL.crypto.PKey` instance.
         """
         key = PKey()
-        key.generate_key(TYPE_RSA, 512)
+        key.generate_key(TYPE_RSA, 1024)
         ctx = Context(TLSv1_METHOD)
         ctx.use_privatekey(key)
         with pytest.raises(TypeError):
@@ -619,7 +619,7 @@
         arguments does not raise an exception.
         """
         key = PKey()
-        key.generate_key(TYPE_RSA, 512)
+        key.generate_key(TYPE_RSA, 1024)
 
         with open(pemfile, "wt") as pem:
             pem.write(dump_privatekey(FILETYPE_PEM, key).decode("ascii"))
@@ -857,7 +857,7 @@
         passphrase.  Return the path to the new file.
         """
         key = PKey()
-        key.generate_key(TYPE_RSA, 512)
+        key.generate_key(TYPE_RSA, 1024)
         pem = dump_privatekey(FILETYPE_PEM, key, "blowfish", passphrase)
         with open(tmpfile, "w") as fObj:
             fObj.write(pem.decode("ascii"))
@@ -2739,7 +2739,7 @@
         ctx = Context(v1)
         ctx.use_privatekey(key)
         ctx.use_certificate(cert)
-        ctx.set_session_id("unity-test")
+        ctx.set_session_id(b"unity-test")
 
         def makeServer(socket):
             server = Connection(ctx, socket)
@@ -3665,7 +3665,7 @@
         with pytest.raises(TypeError):
             clientSSL.bio_read(100)
         with pytest.raises(TypeError):
-            clientSSL.bio_write("foo")
+            clientSSL.bio_write(b"foo")
         with pytest.raises(TypeError):
             clientSSL.bio_shutdown()