44import unittest
55import warnings
66from ntpath import ALLOW_MISSING
7- from test .support import TestFailed , FakePath , os_helper
7+ from test .support import TestFailed , FakePath , EnvironmentVarGuard
88from test import support , test_genericpath
99from tempfile import TemporaryFile
1010
@@ -641,7 +641,7 @@ def test_realpath_cwd(self):
641641 ntpath .realpath ("file.txt" , ** kwargs ))
642642
643643 def test_expandvars (self ):
644- with support . EnvironmentVarGuard () as env :
644+ with EnvironmentVarGuard () as env :
645645 env .clear ()
646646 env ["foo" ] = "bar"
647647 env ["{foo" ] = "baz1"
@@ -670,7 +670,7 @@ def test_expandvars(self):
670670 def test_expandvars_nonascii (self ):
671671 def check (value , expected ):
672672 tester ('ntpath.expandvars(%r)' % value , expected )
673- with support . EnvironmentVarGuard () as env :
673+ with EnvironmentVarGuard () as env :
674674 env .clear ()
675675 nonascii = support .FS_NONASCII
676676 env ['spam' ] = nonascii
@@ -689,7 +689,7 @@ def check(value, expected):
689689 @support .requires_resource ('cpu' )
690690 def test_expandvars_large (self ):
691691 expandvars = ntpath .expandvars
692- with os_helper . EnvironmentVarGuard () as env :
692+ with EnvironmentVarGuard () as env :
693693 env .clear ()
694694 env ["A" ] = "B"
695695 n = 100_000
@@ -702,7 +702,7 @@ def test_expandvars_large(self):
702702 def test_expanduser (self ):
703703 tester ('ntpath.expanduser("test")' , 'test' )
704704
705- with support . EnvironmentVarGuard () as env :
705+ with EnvironmentVarGuard () as env :
706706 env .clear ()
707707 tester ('ntpath.expanduser("~test")' , '~test' )
708708
0 commit comments