There was an error while loading. Please reload this page.
1 parent 4cabaca commit 09dd0ebCopy full SHA for 09dd0eb
1 file changed
smmap/test/test_util.py
@@ -71,9 +71,10 @@ def test_region(self):
71
assert not rfull.includes_ofs(-1) and not rfull.includes_ofs(sys.maxint)
72
# with the values we have, this test only works on windows where an alignment
73
# size of 4096 is assumed.
74
- if sys.platform == 'win32':
75
- assert rhalfofs.includes_ofs(rofs) and rhalfofs.includes_ofs(0)
76
- else:
+ # We only test on linux as it is inconsitent between the python versions
+ # as they use different mapping techniques to circumvent the missing offset
+ # argument of mmap.
77
+ if sys.platform != 'win32':
78
assert rhalfofs.includes_ofs(rofs) and not rhalfofs.includes_ofs(0)
79
#END handle platforms
80
0 commit comments