@@ -641,8 +641,6 @@ def test_raise(self):
641641 self .assertRaises (urllib .error .URLError , o .open , req )
642642 self .assertEqual (o .calls , [(handlers [0 ], "http_open" , (req ,), {})])
643643
644- # TODO: RUSTPYTHON
645- @unittest .expectedFailure
646644 def test_http_error (self ):
647645 # XXX http_error_default
648646 # http errors are a special case
@@ -666,8 +664,6 @@ def test_http_error(self):
666664 self .assertEqual ((handler , method_name ), got [:2 ])
667665 self .assertEqual (args , got [2 ])
668666
669- # TODO: RUSTPYTHON
670- @unittest .expectedFailure
671667 def test_processors (self ):
672668 # *_request / *_response methods get called appropriately
673669 o = OpenerDirector ()
@@ -874,8 +870,6 @@ def test_file(self):
874870 self .assertEqual (req .type , "ftp" )
875871 self .assertEqual (req .type == "ftp" , ftp )
876872
877- # TODO: RUSTPYTHON
878- @unittest .expectedFailure
879873 def test_http (self ):
880874
881875 h = urllib .request .AbstractHTTPHandler ()
@@ -1136,8 +1130,6 @@ def test_fixpath_in_weirdurls(self):
11361130 self .assertEqual (newreq .host , 'www.python.org' )
11371131 self .assertEqual (newreq .selector , '' )
11381132
1139- # TODO: RUSTPYTHON
1140- @unittest .expectedFailure
11411133 def test_errors (self ):
11421134 h = urllib .request .HTTPErrorProcessor ()
11431135 o = h .parent = MockOpener ()
@@ -1163,8 +1155,6 @@ def test_errors(self):
11631155 self .assertEqual (o .proto , "http" ) # o.error called
11641156 self .assertEqual (o .args , (req , r , 502 , "Bad gateway" , {}))
11651157
1166- # TODO: RUSTPYTHON
1167- @unittest .expectedFailure
11681158 def test_cookies (self ):
11691159 cj = MockCookieJar ()
11701160 h = urllib .request .HTTPCookieProcessor (cj )
@@ -1291,8 +1281,6 @@ def test_relative_redirect(self):
12911281 MockHeaders ({"location" : valid_url }))
12921282 self .assertEqual (o .req .get_full_url (), valid_url )
12931283
1294- # TODO: RUSTPYTHON
1295- @unittest .expectedFailure
12961284 def test_cookie_redirect (self ):
12971285 # cookies shouldn't leak into redirected requests
12981286 from http .cookiejar import CookieJar
@@ -1308,8 +1296,6 @@ def test_cookie_redirect(self):
13081296 o .open ("http://www.example.com/" )
13091297 self .assertFalse (hh .req .has_header ("Cookie" ))
13101298
1311- # TODO: RUSTPYTHON
1312- @unittest .expectedFailure
13131299 def test_redirect_fragment (self ):
13141300 redirected_url = 'http://www.example.com/index.html#OK\r \n \r \n '
13151301 hh = MockHTTPHandler (302 , 'Location: ' + redirected_url )
@@ -1374,8 +1360,6 @@ def http_open(self, req):
13741360 request = handler .last_buf
13751361 self .assertTrue (request .startswith (expected ), repr (request ))
13761362
1377- # TODO: RUSTPYTHON
1378- @unittest .expectedFailure
13791363 def test_proxy (self ):
13801364 u = "proxy.example.com:3128"
13811365 for d in dict (http = u ), dict (HTTP = u ):
@@ -1420,8 +1404,6 @@ def test_proxy_no_proxy_all(self):
14201404 self .assertEqual (req .host , "www.python.org" )
14211405 del os .environ ['no_proxy' ]
14221406
1423- # TODO: RUSTPYTHON
1424- @unittest .expectedFailure
14251407 def test_proxy_https (self ):
14261408 o = OpenerDirector ()
14271409 ph = urllib .request .ProxyHandler (dict (https = "proxy.example.com:3128" ))
@@ -1509,8 +1491,6 @@ def check_basic_auth(self, headers, realm):
15091491 "http://acme.example.com/protected" ,
15101492 "http://acme.example.com/protected" )
15111493
1512- # TODO: RUSTPYTHON
1513- @unittest .expectedFailure
15141494 def test_basic_auth (self ):
15151495 realm = "realm2@example.com"
15161496 realm2 = "realm2@example.com"
@@ -1556,8 +1536,6 @@ def test_basic_auth(self):
15561536 for challenge in challenges ]
15571537 self .check_basic_auth (headers , realm )
15581538
1559- # TODO: RUSTPYTHON
1560- @unittest .expectedFailure
15611539 def test_proxy_basic_auth (self ):
15621540 opener = OpenerDirector ()
15631541 ph = urllib .request .ProxyHandler (dict (http = "proxy.example.com:3128" ))
@@ -1575,8 +1553,6 @@ def test_proxy_basic_auth(self):
15751553 "proxy.example.com:3128" ,
15761554 )
15771555
1578- # TODO: RUSTPYTHON
1579- @unittest .expectedFailure
15801556 def test_basic_and_digest_auth_handlers (self ):
15811557 # HTTPDigestAuthHandler raised an exception if it couldn't handle a 40*
15821558 # response (http://python.org/sf/1479302), where it should instead
@@ -1684,8 +1660,6 @@ def _test_basic_auth(self, opener, auth_handler, auth_header,
16841660 self .assertEqual (len (http_handler .requests ), 1 )
16851661 self .assertFalse (http_handler .requests [0 ].has_header (auth_header ))
16861662
1687- # TODO: RUSTPYTHON
1688- @unittest .expectedFailure
16891663 def test_basic_prior_auth_auto_send (self ):
16901664 # Assume already authenticated if is_authenticated=True
16911665 # for APIs like Github that don't return 401
@@ -1713,8 +1687,6 @@ def test_basic_prior_auth_auto_send(self):
17131687 # expect request to be sent with auth header
17141688 self .assertTrue (http_handler .has_auth_header )
17151689
1716- # TODO: RUSTPYTHON
1717- @unittest .expectedFailure
17181690 def test_basic_prior_auth_send_after_first_success (self ):
17191691 # Auto send auth header after authentication is successful once
17201692
0 commit comments