Skip to content

Commit

Permalink
Fix tests, attempt python#2
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Jan 8, 2024
1 parent f6f0e35 commit bb7abe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_unittest/test_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ def _join(name):

def testParseArgsAbsolutePathsThatCannotBeConverted(self):
program = self.program
# '//...' is considered absolute by os.path.abspath on all platforms.
argv = ['progname', '//foo/bar/baz.py', '//green/red.py']
drive = os.path.splitdrive(os.getcwd())[0]
argv = ['progname', f'{drive}/foo/bar/baz.py', f'{drive}/green/red.py']
self._patch_isfile(argv)

program.createTests = lambda: None
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_zoneinfo/test_zoneinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ def test_env_variable_relative_paths(self):
def test_reset_tzpath_kwarg(self):
self.module.reset_tzpath(to=[f"{DRIVE}/a/b/c"])

self.assertSequenceEqual(self.module.TZPATH, ("/a/b/c",))
self.assertSequenceEqual(self.module.TZPATH, (f"{DRIVE}/a/b/c",))

def test_reset_tzpath_relative_paths(self):
bad_values = [
Expand Down

0 comments on commit bb7abe5

Please sign in to comment.