File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -415,7 +415,6 @@ def test_options(self):
415415 value = getattr (ssl , name )
416416 self .assertGreaterEqual (value , 0 , f"ssl.{ name } " )
417417
418- @unittest .expectedFailure # TODO: RUSTPYTHON; AssertionError: TypeError not raised by Certificate
419418 def test_ssl_types (self ):
420419 ssl_types = [
421420 _ssl ._SSLContext ,
Original file line number Diff line number Diff line change @@ -67,7 +67,10 @@ pub(crate) mod ssl_cert {
6767 }
6868 }
6969
70- #[ pyclass( with( Comparable , Hashable , Representable ) ) ]
70+ #[ pyclass(
71+ flags( IMMUTABLETYPE , DISALLOW_INSTANTIATION ) ,
72+ with( Comparable , Hashable , Representable )
73+ ) ]
7174 impl PySSLCertificate {
7275 #[ pymethod]
7376 fn public_bytes (
Original file line number Diff line number Diff line change @@ -5040,7 +5040,10 @@ mod _ssl {
50405040 }
50415041 }
50425042
5043- #[ pyclass( with( Comparable , Hashable , Representable ) ) ]
5043+ #[ pyclass(
5044+ flags( IMMUTABLETYPE , DISALLOW_INSTANTIATION ) ,
5045+ with( Comparable , Hashable , Representable )
5046+ ) ]
50445047 impl PySSLCertificate {
50455048 #[ pymethod]
50465049 fn public_bytes (
You can’t perform that action at this time.
0 commit comments