@@ -266,6 +266,7 @@ def pip_cmd_checker(cmd, **kwargs):
266266 with patch ('venv.subprocess.check_output' , pip_cmd_checker ):
267267 builder .upgrade_dependencies (fake_context )
268268
269+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
269270 @requireVenvCreate
270271 def test_prefixes (self ):
271272 """
@@ -285,6 +286,7 @@ def test_prefixes(self):
285286 self .assertEqual (pathlib .Path (out .strip ().decode ()),
286287 pathlib .Path (expected ), prefix )
287288
289+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
288290 @requireVenvCreate
289291 def test_sysconfig (self ):
290292 """
@@ -318,6 +320,7 @@ def test_sysconfig(self):
318320 out , err = check_output (cmd , encoding = 'utf-8' )
319321 self .assertEqual (out .strip (), expected , err )
320322
323+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
321324 @requireVenvCreate
322325 @unittest .skipUnless (can_symlink (), 'Needs symlinks' )
323326 def test_sysconfig_symlinks (self ):
@@ -458,6 +461,7 @@ def test_isolation(self):
458461 data = self .get_text_file_contents ('pyvenv.cfg' )
459462 self .assertIn ('include-system-site-packages = %s\n ' % s , data )
460463
464+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
461465 @unittest .skipUnless (can_symlink (), 'Needs symlinks' )
462466 def test_symlinking (self ):
463467 """
@@ -482,6 +486,7 @@ def test_symlinking(self):
482486 # run the test, the pyvenv.cfg in the venv created in the test will
483487 # point to the venv being used to run the test, and we lose the link
484488 # to the source build - so Python can't initialise properly.
489+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
485490 @requireVenvCreate
486491 def test_executable (self ):
487492 """
@@ -494,6 +499,7 @@ def test_executable(self):
494499 'import sys; print(sys.executable)' ])
495500 self .assertEqual (out .strip (), envpy .encode ())
496501
502+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
497503 @unittest .skipUnless (can_symlink (), 'Needs symlinks' )
498504 def test_executable_symlinks (self ):
499505 """
@@ -562,6 +568,7 @@ def test_special_chars_csh(self):
562568 self .assertEndsWith (lines [1 ], env_name .encode ())
563569
564570 # gh-124651: test quoted strings on Windows
571+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
565572 @unittest .skipUnless (os .name == 'nt' , 'only relevant on Windows' )
566573 def test_special_chars_windows (self ):
567574 """
@@ -585,6 +592,7 @@ def test_special_chars_windows(self):
585592 self .assertTrue (env_name .encode () in lines [0 ])
586593 self .assertEndsWith (lines [1 ], env_name .encode ())
587594
595+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
588596 @unittest .skipUnless (os .name == 'nt' , 'only relevant on Windows' )
589597 def test_unicode_in_batch_file (self ):
590598 """
@@ -616,6 +624,7 @@ def test_failed_symlink(self):
616624 filepath_regex = r"'[A-Z]:\\\\(?:[^\\\\]+\\\\)*[^\\\\]+'"
617625 self .assertRegex (err , rf"Unable to symlink { filepath_regex } to { filepath_regex } " )
618626
627+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
619628 @requireVenvCreate
620629 def test_multiprocessing (self ):
621630 """
@@ -635,6 +644,7 @@ def test_multiprocessing(self):
635644 'pool.terminate()' ])
636645 self .assertEqual (out .strip (), "python" .encode ())
637646
647+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
638648 @requireVenvCreate
639649 def test_multiprocessing_recursion (self ):
640650 """
@@ -892,6 +902,7 @@ def test_venv_same_path(self):
892902 self .assertFalse (same_path (path1 , path2 ))
893903
894904 # gh-126084: venvwlauncher should run pythonw, not python
905+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
895906 @requireVenvCreate
896907 @unittest .skipUnless (os .name == 'nt' , 'only relevant on Windows' )
897908 def test_venvwlauncher (self ):
@@ -926,11 +937,13 @@ def assert_pip_not_installed(self):
926937 self .assertEqual (out .strip (), "OK" )
927938
928939
940+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
929941 def test_no_pip_by_default (self ):
930942 rmtree (self .env_dir )
931943 self .run_with_capture (venv .create , self .env_dir )
932944 self .assert_pip_not_installed ()
933945
946+ @unittest .expectedFailureIfWindows ("TODO: RUSTPYTHON" )
934947 def test_explicit_no_pip (self ):
935948 rmtree (self .env_dir )
936949 self .run_with_capture (venv .create , self .env_dir , with_pip = False )
0 commit comments