Commits

Anonymous committed dcf589e

Add a test for lstat on non-symlinks

Comments (0)

Files changed (1)

Lib/test/test_pathlib.py

         st = p.stat()
         self.assertNotEqual(st, p.lstat())
 
+    def test_lstat_nosymlink(self):
+        p = self.cls(BASE)['fileA']
+        st = p.stat()
+        self.assertEqual(st, p.lstat())
+
     def test_unlink(self):
         p = self.cls(BASE)['fileA']
         p.unlink()