@@ -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 )
@@ -519,7 +518,6 @@ def test_list_dir_undecodable_dirname(self):
519518 'undecodable name cannot be decoded on win32' )
520519 @unittest .skipUnless (os_helper .TESTFN_UNDECODABLE ,
521520 'need os_helper.TESTFN_UNDECODABLE' )
522- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
523521 def test_list_dir_undecodable_filename (self ):
524522 filename = os .fsdecode (os_helper .TESTFN_UNDECODABLE ) + '.txt'
525523 self .check_list_dir_filename (filename )
@@ -536,7 +534,6 @@ def test_list_dir_unencodable_dirname(self):
536534
537535 @unittest .skipUnless (os_helper .TESTFN_UNENCODABLE ,
538536 'need os_helper.TESTFN_UNENCODABLE' )
539- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
540537 def test_list_dir_unencodable_filename (self ):
541538 filename = os_helper .TESTFN_UNENCODABLE + '.txt'
542539 self .check_list_dir_filename (filename )
@@ -550,7 +547,6 @@ def test_list_dir_escape_dirname(self):
550547 self .check_list_dir_dirname (dirname ,
551548 quotedname = urllib .parse .quote (dirname , safe = '&<>\' "' ))
552549
553- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
554550 def test_list_dir_escape_filename (self ):
555551 # Characters that need special treating in URL or HTML.
556552 for name in ('q?' , 'f#' , '&' , '&' , '<i>' , '"dq"' , "'sq'" ,
@@ -618,7 +614,6 @@ def test_get_dir_redirect_location_domain_injection_bug(self):
618614 # follows that isn't important in this Location: header.
619615 self .assertStartsWith (location , 'https://pypi.org/' )
620616
621- @unittest .expectedFailure # TODO: RUSTPYTHON
622617 def test_get (self ):
623618 #constructs the path relative to the root directory of the HTTPServer
624619 response = self .request (self .base_url + '/test' )
@@ -670,7 +665,6 @@ def test_get(self):
670665 finally :
671666 os .chmod (self .tempdir , 0o755 )
672667
673- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
674668 def test_head (self ):
675669 response = self .request (
676670 self .base_url + '/test' , method = 'HEAD' )
@@ -680,7 +674,6 @@ def test_head(self):
680674 self .assertEqual (response .getheader ('content-type' ),
681675 'application/octet-stream' )
682676
683- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
684677 def test_browser_cache (self ):
685678 """Check that when a request to /test is sent with the request header
686679 If-Modified-Since set to date of last modification, the server returns
@@ -699,7 +692,6 @@ def test_browser_cache(self):
699692 response = self .request (self .base_url + '/test' , headers = headers )
700693 self .check_status_and_reason (response , HTTPStatus .NOT_MODIFIED )
701694
702- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
703695 def test_browser_cache_file_changed (self ):
704696 # with If-Modified-Since earlier than Last-Modified, must return 200
705697 dt = self .last_modif_datetime
@@ -711,7 +703,6 @@ def test_browser_cache_file_changed(self):
711703 response = self .request (self .base_url + '/test' , headers = headers )
712704 self .check_status_and_reason (response , HTTPStatus .OK )
713705
714- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
715706 def test_browser_cache_with_If_None_Match_header (self ):
716707 # if If-None-Match header is present, ignore If-Modified-Since
717708
@@ -730,7 +721,6 @@ def test_invalid_requests(self):
730721 response = self .request ('/' , method = 'GETs' )
731722 self .check_status_and_reason (response , HTTPStatus .NOT_IMPLEMENTED )
732723
733- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
734724 def test_last_modified (self ):
735725 """Checks that the datetime returned in Last-Modified response header
736726 is the actual datetime of last modification, rounded to the second
@@ -740,7 +730,6 @@ def test_last_modified(self):
740730 last_modif_header = response .headers ['Last-modified' ]
741731 self .assertEqual (last_modif_header , self .last_modif_header )
742732
743- @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
744733 def test_path_without_leading_slash (self ):
745734 response = self .request (self .tempdir_name + '/test' )
746735 self .check_status_and_reason (response , HTTPStatus .OK , data = self .data )
0 commit comments