Skip to content

Commit f73bbaf

Browse files
Fix tests on Android.
1 parent 135373c commit f73bbaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Lib/test/test_mmap.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def test_anonymous(self):
508508
m[x] = b
509509
self.assertEqual(m[x], b)
510510

511-
if sys.platform.startswith('linux'):
511+
if sys.platform.startswith(('linux', 'android')):
512512
# Can't expand a shared anonymous mapping on Linux.
513513
# See https://bugzilla.kernel.org/show_bug.cgi?id=8691
514514
with self.assertRaises(ValueError):
@@ -541,7 +541,7 @@ def test_anonymous(self):
541541
with self.assertRaises(IndexError):
542542
m[PAGESIZE // 2]
543543

544-
if sys.platform.startswith('linux'):
544+
if sys.platform.startswith(('linux', 'android')):
545545
# Can't expand to its original size.
546546
with self.assertRaises(ValueError):
547547
m.resize(PAGESIZE)

0 commit comments

Comments
 (0)