Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r88939:705f19c1f075
Date: 2016-12-07 14:46 +0100
http://bitbucket.org/pypy/pypy/changeset/705f19c1f075/

Log:    Random CPython compliance

diff --git a/pypy/module/posix/app_posix.py b/pypy/module/posix/app_posix.py
--- a/pypy/module/posix/app_posix.py
+++ b/pypy/module/posix/app_posix.py
@@ -80,7 +80,8 @@
 
 class statvfs_result(metaclass=structseqtype):
 
-    name = osname + ".statvfs_result"
+    name = "os.statvfs_result"
+    __module__ = "os"
 
     f_bsize = structseqfield(0)
     f_frsize = structseqfield(1)
@@ -96,7 +97,7 @@
 
 class uname_result(metaclass=structseqtype):
 
-    name = osname + ".uname_result"
+    name = osname + ".uname_result"    # and NOT "os.uname_result"
 
     sysname  = structseqfield(0, "operating system name")
     nodename = structseqfield(1, "name of machine on network "
@@ -108,6 +109,7 @@
 class terminal_size(metaclass=structseqtype):
 
     name = "os.terminal_size"
+    __module__ = "os"
 
     columns  = structseqfield(0, "width of the terminal window in characters")
     lines = structseqfield(1, "height of the terminal window in characters")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to