We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52c859 commit bb1addcCopy full SHA for bb1addc
1 file changed
Lib/test/test_zoneinfo/test_zoneinfo.py
@@ -1806,15 +1806,20 @@ def test_tzpath_type_error(self):
1806
def test_tzpath_attribute(self):
1807
tzpath_0 = [f"{DRIVE}/one", f"{DRIVE}/two"]
1808
tzpath_1 = [f"{DRIVE}/three"]
1809
+ tzpath_pathlike = (pathlib.Path("/usr/share/zoneinfo"),)
1810
1811
with self.tzpath_context(tzpath_0):
1812
query_0 = self.module.TZPATH
1813
1814
with self.tzpath_context(tzpath_1):
1815
query_1 = self.module.TZPATH
1816
1817
+ with self.tzpath_context(tzpath_pathlike):
1818
+ query_pathlike = self.module.TZPATH
1819
+
1820
self.assertSequenceEqual(tzpath_0, query_0)
1821
self.assertSequenceEqual(tzpath_1, query_1)
1822
+ self.assertSequenceEqual(tzpath_pathlike, query_pathlike)
1823
1824
1825
class CTzPathTest(TzPathTest):
0 commit comments