@@ -357,6 +357,7 @@ def stop_server(self):
357357 self .server .stop ()
358358 self .server = None
359359
360+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
360361 def test_proxy_with_bad_password_raises_httperror (self ):
361362 self .proxy_digest_handler .add_password (self .REALM , self .URL ,
362363 self .USER , self .PASSWD + "bad" )
@@ -365,12 +366,14 @@ def test_proxy_with_bad_password_raises_httperror(self):
365366 self .opener .open ,
366367 self .URL )
367368
369+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
368370 def test_proxy_with_no_password_raises_httperror (self ):
369371 self .digest_auth_handler .set_qop ("auth" )
370372 self .assertRaises (urllib .error .HTTPError ,
371373 self .opener .open ,
372374 self .URL )
373375
376+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
374377 def test_proxy_qop_auth_works (self ):
375378 self .proxy_digest_handler .add_password (self .REALM , self .URL ,
376379 self .USER , self .PASSWD )
@@ -379,6 +382,7 @@ def test_proxy_qop_auth_works(self):
379382 while result .read ():
380383 pass
381384
385+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
382386 def test_proxy_qop_auth_int_works_or_throws_urlerror (self ):
383387 self .proxy_digest_handler .add_password (self .REALM , self .URL ,
384388 self .USER , self .PASSWD )
@@ -500,6 +504,7 @@ def start_https_server(self, responses=None, **kwargs):
500504 handler .port = server .port
501505 return handler
502506
507+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
503508 def test_redirection (self ):
504509 expected_response = b"We got here..."
505510 responses = [
@@ -513,6 +518,7 @@ def test_redirection(self):
513518 self .assertEqual (data , expected_response )
514519 self .assertEqual (handler .requests , ["/" , "/somewhere_else" ])
515520
521+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
516522 def test_chunked (self ):
517523 expected_response = b"hello world"
518524 chunked_start = (
@@ -527,6 +533,7 @@ def test_chunked(self):
527533 data = self .urlopen ("http://localhost:%s/" % handler .port )
528534 self .assertEqual (data , expected_response )
529535
536+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
530537 def test_404 (self ):
531538 expected_response = b"Bad bad bad..."
532539 handler = self .start_server ([(404 , [], expected_response )])
@@ -542,13 +549,15 @@ def test_404(self):
542549 self .assertEqual (data , expected_response )
543550 self .assertEqual (handler .requests , ["/weeble" ])
544551
552+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
545553 def test_200 (self ):
546554 expected_response = b"pycon 2008..."
547555 handler = self .start_server ([(200 , [], expected_response )])
548556 data = self .urlopen ("http://localhost:%s/bizarre" % handler .port )
549557 self .assertEqual (data , expected_response )
550558 self .assertEqual (handler .requests , ["/bizarre" ])
551559
560+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
552561 def test_200_with_parameters (self ):
553562 expected_response = b"pycon 2008..."
554563 handler = self .start_server ([(200 , [], expected_response )])
@@ -559,6 +568,7 @@ def test_200_with_parameters(self):
559568
560569 # TODO: RUSTPYTHON
561570 @unittest .expectedFailure
571+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
562572 def test_https (self ):
563573 handler = self .start_https_server ()
564574 context = ssl .create_default_context (cafile = CERT_localhost )
@@ -567,6 +577,7 @@ def test_https(self):
567577
568578 # TODO: RUSTPYTHON
569579 @unittest .expectedFailure
580+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
570581 def test_https_with_cafile (self ):
571582 handler = self .start_https_server (certfile = CERT_localhost )
572583 with warnings_helper .check_warnings (('' , DeprecationWarning )):
@@ -584,6 +595,7 @@ def test_https_with_cafile(self):
584595 self .urlopen ("https://localhost:%s/bizarre" % handler .port ,
585596 cafile = CERT_fakehostname )
586597
598+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
587599 def test_https_with_cadefault (self ):
588600 handler = self .start_https_server (certfile = CERT_localhost )
589601 # Self-signed cert should fail verification with system certificate store
@@ -594,6 +606,7 @@ def test_https_with_cadefault(self):
594606
595607 # TODO: RUSTPYTHON
596608 @unittest .expectedFailure
609+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
597610 def test_https_sni (self ):
598611 if ssl is None :
599612 self .skipTest ("ssl module required" )
@@ -610,6 +623,7 @@ def cb_sni(ssl_sock, server_name, initial_context):
610623 self .urlopen ("https://localhost:%s" % handler .port , context = context )
611624 self .assertEqual (sni_name , "localhost" )
612625
626+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
613627 def test_sending_headers (self ):
614628 handler = self .start_server ()
615629 req = urllib .request .Request ("http://localhost:%s/" % handler .port ,
@@ -618,6 +632,7 @@ def test_sending_headers(self):
618632 pass
619633 self .assertEqual (handler .headers_received ["Range" ], "bytes=20-39" )
620634
635+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
621636 def test_basic (self ):
622637 handler = self .start_server ()
623638 with urllib .request .urlopen ("http://localhost:%s" % handler .port ) as open_url :
@@ -626,6 +641,7 @@ def test_basic(self):
626641 "urlopen lacks the %s attribute" % attr )
627642 self .assertTrue (open_url .read (), "calling 'read' failed" )
628643
644+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
629645 def test_info (self ):
630646 handler = self .start_server ()
631647 open_url = urllib .request .urlopen (
@@ -637,6 +653,7 @@ def test_info(self):
637653 "instance of email.message.Message" )
638654 self .assertEqual (info_obj .get_content_subtype (), "plain" )
639655
656+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
640657 def test_geturl (self ):
641658 # Make sure same URL as opened is returned by geturl.
642659 handler = self .start_server ()
@@ -645,13 +662,15 @@ def test_geturl(self):
645662 url = open_url .geturl ()
646663 self .assertEqual (url , "http://localhost:%s" % handler .port )
647664
665+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
648666 def test_iteration (self ):
649667 expected_response = b"pycon 2008..."
650668 handler = self .start_server ([(200 , [], expected_response )])
651669 data = urllib .request .urlopen ("http://localhost:%s" % handler .port )
652670 for line in data :
653671 self .assertEqual (line , expected_response )
654672
673+ @unittest .skipIf (os .name == "nt" , "TODO: RUSTPYTHON, ValueError: illegal environment variable name" )
655674 def test_line_iteration (self ):
656675 lines = [b"We\n " , b"got\n " , b"here\n " , b"verylong " * 8192 + b"\n " ]
657676 expected_response = b"" .join (lines )
0 commit comments