Skip to content

Commit

Permalink
filename case
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Jan 7, 2021
1 parent 2d547e4 commit 712ff44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_7runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,6 @@ def test_repeated_file_rewriting(self):
outp = self._run(wdl, {"file": os.path.join(self._dir, "alice.txt")})
self.assertEqual(outp["t.out"], ["Alice", "Alice"])

@unittest.skipIf(platform.system() == "Darwin", "FIXME on macOS")
def test_weird_filenames(self):
chars = [c for c in (chr(i) for i in range(1,256)) if c not in ('/')]
filenames = []
Expand All @@ -722,6 +721,8 @@ def test_weird_filenames(self):
filenames.append(c)
filenames.append(c + ''.join(random.choices(chars,k=11)))
assert filenames == list(sorted(filenames))
if platform.system() == "Darwin": # macOS is case-insensitive
filenames = list(set(fn.lower() for fn in filenames))
filenames.append('ThisIs{{AVeryLongFilename }}abc...}}xzy1234567890!@{{నేనుÆды.test.ext')

inputs = {"files": []}
Expand Down

0 comments on commit 712ff44

Please sign in to comment.