Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r73588:d0c26086a7f6
Date: 2014-09-17 12:57 -0700
http://bitbucket.org/pypy/pypy/changeset/d0c26086a7f6/
Log: rearrange
diff --git a/rpython/rtyper/module/test/test_ll_win32file.py
b/rpython/rtyper/module/test/test_ll_win32file.py
--- a/rpython/rtyper/module/test/test_ll_win32file.py
+++ b/rpython/rtyper/module/test/test_ll_win32file.py
@@ -8,6 +8,15 @@
py.test.skip("requires Windows")
+def test__getfileinformation():
+ with open(__file__) as fp:
+ stat = os.fstat(fp.fileno())
+ info = ll_os._getfileinformation(fp.fileno())
+ serial, high, low = info
+ assert type(serial) in (int, long)
+ assert (high << 32) + low == stat.st_ino
+
+
def test__getfinalpathname():
path = __file__.decode('mbcs')
try:
@@ -15,12 +24,3 @@
except ll_os.LLNotImplemented:
py.test.skip("_getfinalpathname not supported on this platform")
assert os.path.exists(result)
-
-
-def test__getfileinformation():
- with open(__file__) as fp:
- stat = os.fstat(fp.fileno())
- info = ll_os._getfileinformation(fp.fileno())
- serial, high, low = info
- assert type(serial) in (int, long)
- assert (high << 32) + low == stat.st_ino
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit