Commits

Philip Jenvey  committed 4c31c5c

fix stat_result's repr on windows

  • Participants
  • Parent commits 4c1206a

Comments (0)

Files changed (2)

File pypy/module/posix/app_posix.py

 class stat_result:
     __metaclass__ = structseqtype
 
-    name = "posix.stat_result"
+    name = osname + ".stat_result"
 
     st_mode  = structseqfield(0, "protection bits")
     st_ino   = structseqfield(1, "inode")

File pypy/module/posix/test/test_posix2.py

         assert st.st_atime == 41
         assert st.st_mtime == 42.1
         assert st.st_ctime == 43
+        assert repr(st).startswith(self.posix.__name__ + '.stat_result')
 
     def test_stat_lstat(self):
         import stat