Xavier de Gaye added the comment: f.seek(number) raises ValueError (ValueError: cannot fit 'int' into an offset-sized integer) when 'number' is greater than the size allowed by off_t. ValueError is not handled in test_mmap to detect that large file is not supported.
With this patch, test_large_filesize and test_large_offset are skipped as expected on an Android emulator. ---------- keywords: +patch resolution: duplicate -> status: closed -> open title: android: test_mmap fails -> test_mmap does not handle ValueError when no large file support Added file: http://bugs.python.org/file42942/value-error.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26927> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com