summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rwxr-xr-xLib/test/test_pathlib.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index e23e5a7..751764f 100755
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -1623,12 +1623,16 @@ class PosixPathTest(_BasePathTest, unittest.TestCase):
def test_glob(self):
P = self.cls
p = P(BASE)
- self.assertEqual(set(p.glob("FILEa")), set())
+ given = set(p.glob("FILEa"))
+ expect = set() if not support.fs_is_case_insensitive(BASE) else given
+ self.assertEqual(given, expect)
def test_rglob(self):
P = self.cls
p = P(BASE, "dirC")
- self.assertEqual(set(p.rglob("FILEd")), set())
+ given = set(p.rglob("FILEd"))
+ expect = set() if not support.fs_is_case_insensitive(BASE) else given
+ self.assertEqual(given, expect)
@only_nt