return only an int for unsupported general name type, update docs
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py
index c17beba..1283fca 100644
--- a/tests/test_x509_ext.py
+++ b/tests/test_x509_ext.py
@@ -769,4 +769,4 @@
         with pytest.raises(x509.UnsupportedGeneralNameType) as exc:
             cert.extensions
 
-        assert exc.value.type == "otherName"
+        assert exc.value.type == 0