@@ -498,6 +498,7 @@ 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
501502 def test_list_dir_nonascii_filename (self ):
502503 filename = os_helper .TESTFN_NONASCII + '.txt'
503504 self .check_list_dir_filename (filename )
@@ -518,6 +519,7 @@ def test_list_dir_undecodable_dirname(self):
518519 'undecodable name cannot be decoded on win32' )
519520 @unittest .skipUnless (os_helper .TESTFN_UNDECODABLE ,
520521 'need os_helper.TESTFN_UNDECODABLE' )
522+ @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
521523 def test_list_dir_undecodable_filename (self ):
522524 filename = os .fsdecode (os_helper .TESTFN_UNDECODABLE ) + '.txt'
523525 self .check_list_dir_filename (filename )
@@ -534,6 +536,7 @@ def test_list_dir_unencodable_dirname(self):
534536
535537 @unittest .skipUnless (os_helper .TESTFN_UNENCODABLE ,
536538 'need os_helper.TESTFN_UNENCODABLE' )
539+ @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
537540 def test_list_dir_unencodable_filename (self ):
538541 filename = os_helper .TESTFN_UNENCODABLE + '.txt'
539542 self .check_list_dir_filename (filename )
@@ -547,6 +550,7 @@ def test_list_dir_escape_dirname(self):
547550 self .check_list_dir_dirname (dirname ,
548551 quotedname = urllib .parse .quote (dirname , safe = '&<>\' "' ))
549552
553+ @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
550554 def test_list_dir_escape_filename (self ):
551555 # Characters that need special treating in URL or HTML.
552556 for name in ('q?' , 'f#' , '&' , '&' , '<i>' , '"dq"' , "'sq'" ,
@@ -665,6 +669,7 @@ def test_get(self):
665669 finally :
666670 os .chmod (self .tempdir , 0o755 )
667671
672+ @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
668673 def test_head (self ):
669674 response = self .request (
670675 self .base_url + '/test' , method = 'HEAD' )
@@ -674,6 +679,7 @@ def test_head(self):
674679 self .assertEqual (response .getheader ('content-type' ),
675680 'application/octet-stream' )
676681
682+ @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
677683 def test_browser_cache (self ):
678684 """Check that when a request to /test is sent with the request header
679685 If-Modified-Since set to date of last modification, the server returns
@@ -692,6 +698,7 @@ def test_browser_cache(self):
692698 response = self .request (self .base_url + '/test' , headers = headers )
693699 self .check_status_and_reason (response , HTTPStatus .NOT_MODIFIED )
694700
701+ @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
695702 def test_browser_cache_file_changed (self ):
696703 # with If-Modified-Since earlier than Last-Modified, must return 200
697704 dt = self .last_modif_datetime
@@ -703,6 +710,7 @@ def test_browser_cache_file_changed(self):
703710 response = self .request (self .base_url + '/test' , headers = headers )
704711 self .check_status_and_reason (response , HTTPStatus .OK )
705712
713+ @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
706714 def test_browser_cache_with_If_None_Match_header (self ):
707715 # if If-None-Match header is present, ignore If-Modified-Since
708716
@@ -721,6 +729,7 @@ def test_invalid_requests(self):
721729 response = self .request ('/' , method = 'GETs' )
722730 self .check_status_and_reason (response , HTTPStatus .NOT_IMPLEMENTED )
723731
732+ @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
724733 def test_last_modified (self ):
725734 """Checks that the datetime returned in Last-Modified response header
726735 is the actual datetime of last modification, rounded to the second
@@ -730,6 +739,7 @@ def test_last_modified(self):
730739 last_modif_header = response .headers ['Last-modified' ]
731740 self .assertEqual (last_modif_header , self .last_modif_header )
732741
742+ @unittest .expectedFailure # TODO: RUSTPYTHON; http.client.RemoteDisconnected: Remote end closed connection without response
733743 def test_path_without_leading_slash (self ):
734744 response = self .request (self .tempdir_name + '/test' )
735745 self .check_status_and_reason (response , HTTPStatus .OK , data = self .data )
@@ -1015,6 +1025,7 @@ def test_post(self):
10151025
10161026 self .assertEqual (res .read (), b'1, python, 123456' + self .linesep )
10171027
1028+ @unittest .expectedFailure # TODO: RUSTPYTHON; AssertionError: b'' != b'32768 32768\n'
10181029 def test_large_content_length (self ):
10191030 for w in range (15 , 25 ):
10201031 size = 1 << w
@@ -1023,6 +1034,7 @@ def test_large_content_length(self):
10231034 res = self .request ('/cgi-bin/file7.py' , 'POST' , body , headers )
10241035 self .assertEqual (res .read (), b'%d %d' % (size , size ) + self .linesep )
10251036
1037+ @unittest .expectedFailure # TODO: RUSTPYTHON; AssertionError: b'' != b'Hello World\n'
10261038 def test_large_content_length_truncated (self ):
10271039 with support .swap_attr (self .request_handler , 'timeout' , 0.001 ):
10281040 for w in range (18 , 65 ):
0 commit comments