Skip to content

Commit 09dd0eb

Browse files
committed
A tiny win32 fix, once again
1 parent 4cabaca commit 09dd0eb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

smmap/test/test_util.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ def test_region(self):
7171
assert not rfull.includes_ofs(-1) and not rfull.includes_ofs(sys.maxint)
7272
# with the values we have, this test only works on windows where an alignment
7373
# size of 4096 is assumed.
74-
if sys.platform == 'win32':
75-
assert rhalfofs.includes_ofs(rofs) and rhalfofs.includes_ofs(0)
76-
else:
74+
# We only test on linux as it is inconsitent between the python versions
75+
# as they use different mapping techniques to circumvent the missing offset
76+
# argument of mmap.
77+
if sys.platform != 'win32':
7778
assert rhalfofs.includes_ofs(rofs) and not rhalfofs.includes_ofs(0)
7879
#END handle platforms
7980

0 commit comments

Comments
 (0)