@@ -498,7 +498,6 @@ def test_list_dir_nonascii_dirname(self):
498498
499499 @unittest .skipUnless (os_helper .TESTFN_NONASCII ,
500500 'need os_helper.TESTFN_NONASCII' )
501- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
502501 def test_list_dir_nonascii_filename (self ):
503502 filename = os_helper .TESTFN_NONASCII + '.txt'
504503 self .check_list_dir_filename (filename )
@@ -550,7 +549,6 @@ def test_list_dir_escape_dirname(self):
550549 self .check_list_dir_dirname (dirname ,
551550 quotedname = urllib .parse .quote (dirname , safe = '&<>\' "' ))
552551
553- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
554552 def test_list_dir_escape_filename (self ):
555553 # Characters that need special treating in URL or HTML.
556554 for name in ('q?' , 'f#' , '&' , '&' , '<i>' , '"dq"' , "'sq'" ,
@@ -618,7 +616,6 @@ def test_get_dir_redirect_location_domain_injection_bug(self):
618616 # follows that isn't important in this Location: header.
619617 self .assertStartsWith (location , 'https://pypi.org/' )
620618
621- @unittest .expectedFailure # TODO: RUSTPYTHON
622619 def test_get (self ):
623620 #constructs the path relative to the root directory of the HTTPServer
624621 response = self .request (self .base_url + '/test' )
@@ -670,7 +667,6 @@ def test_get(self):
670667 finally :
671668 os .chmod (self .tempdir , 0o755 )
672669
673- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
674670 def test_head (self ):
675671 response = self .request (
676672 self .base_url + '/test' , method = 'HEAD' )
@@ -680,7 +676,6 @@ def test_head(self):
680676 self .assertEqual (response .getheader ('content-type' ),
681677 'application/octet-stream' )
682678
683- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
684679 def test_browser_cache (self ):
685680 """Check that when a request to /test is sent with the request header
686681 If-Modified-Since set to date of last modification, the server returns
@@ -699,7 +694,6 @@ def test_browser_cache(self):
699694 response = self .request (self .base_url + '/test' , headers = headers )
700695 self .check_status_and_reason (response , HTTPStatus .NOT_MODIFIED )
701696
702- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
703697 def test_browser_cache_file_changed (self ):
704698 # with If-Modified-Since earlier than Last-Modified, must return 200
705699 dt = self .last_modif_datetime
@@ -711,7 +705,6 @@ def test_browser_cache_file_changed(self):
711705 response = self .request (self .base_url + '/test' , headers = headers )
712706 self .check_status_and_reason (response , HTTPStatus .OK )
713707
714- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
715708 def test_browser_cache_with_If_None_Match_header (self ):
716709 # if If-None-Match header is present, ignore If-Modified-Since
717710
@@ -730,7 +723,6 @@ def test_invalid_requests(self):
730723 response = self .request ('/' , method = 'GETs' )
731724 self .check_status_and_reason (response , HTTPStatus .NOT_IMPLEMENTED )
732725
733- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
734726 def test_last_modified (self ):
735727 """Checks that the datetime returned in Last-Modified response header
736728 is the actual datetime of last modification, rounded to the second
@@ -740,7 +732,6 @@ def test_last_modified(self):
740732 last_modif_header = response .headers ['Last-modified' ]
741733 self .assertEqual (last_modif_header , self .last_modif_header )
742734
743- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
744735 def test_path_without_leading_slash (self ):
745736 response = self .request (self .tempdir_name + '/test' )
746737 self .check_status_and_reason (response , HTTPStatus .OK , data = self .data )
0 commit comments