ITADN

Python 3.13 alpha, pathlib windows equals pathlib posix

#214Closedfacelessuser 创建于 2024-05-04
T: bugS: confirmedskip-triage
F
facelessusercommented
Currently this test fails: ``` self = <tests.test_pathlib.TestComparisons testMethod=test_pure_equal> def test_pure_equal(self): """Test equivalence.""" p1 = pathlib.PureWindowsPath('wcmatch') p2 = pathlib.PurePosixPath('wcmatch') p3 = pypathlib.PureWindowsPath('wcmatch') p4 = pypathlib.PurePosixPath('wcmatch') > self.assertTrue(p1 != p2) E AssertionError: False is not true tests/test_pathlib.py:313: AssertionError ``` It should be noted that this works with the default Pathlib, so class inheritance has changed. ```py >>> import pathlib >>> p1 = pathlib.PureWindowsPath('path') >>> p2 = pathlib.PurePosixPath('path') >>> p1 == p2 False ``` We will likely have to restructure, once again, how we derive our classes from pathlib.
关闭于 2024-05-04 1 条评论