Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python regression tests fail. #3

Open
shizmob opened this issue Jul 31, 2014 · 0 comments
Open

Python regression tests fail. #3

shizmob opened this issue Jul 31, 2014 · 0 comments

Comments

@shizmob
Copy link
Member

shizmob commented Jul 31, 2014

This is a meta-bug for all failing regression tests as a continuation of issue #2.

This is the current output of python3.3 lib/test/regrtest.py -v (warning: long):
http://txt.shiz.me/N2QzNDI3
http://txt.shiz.me/YmYwOTdj

Some observations:

  • A fair amount of tests actually succeed in the first place! Yay.
  • Some tests (17: aifcs, 24: audiooop, 82: ctypes, 299: sunau) seem to fail because of the dynamic modules not being linked properly against their requirements. This can be fixed easily by adding those libraries to their setup.py stanzas. Should be fixed by 5097284.
  • Some tests (6: types, 11: all, 13: _locale, 63: codecs, 89: decimal, 119: float, 180: locale, 187: mailbox, 289: strftime, 369: zipfile) break because of Bionic's awful locale support. This is a somewhat harder fix, but probably doable. Mostly fixed by 9e1b39d.
  • Some tests (6: types, 71: complex, 98: difflib, 119: float, 123: format, 124: fractions, 190: math, 211: optparse) fail because of floating point rounding errors. I don't know exactly where to start fixing those, but once it's fixed centrally, all those tests should pass. Some of this has been fixed by setting a proper locale: see 9e1b39d
  • Some tests (37: bz2, 229: pipes, 233: platform, 235: poll, 236: popen, 269: select, 298: subprocess) fail because their use of subprocess and shell=True, directly or indirectly. This fails because Android has its shell at /system/bin/sh, not /bin/sh as subprocess expects. Should be an easy fix. Fixed by 1e59bbd and 907f1f9.
  • A few (date)time-related tests (38: calendar, 105: email, 156: imaplib, 181: logging, 333: unicode) seem to fail because of a ValueError: character U+1f70025 is not in range [U+0000; U+10ffff], where the character sometimes differs. Not quite sure what's causing this.
  • multiprocessing.SemLock doesn't seem to be implemented, causing at least one test (72: concurrent_futures) to fail. sem_open seems to be unimplemented in Bionic, so I'm not sure if we can fix this.
  • 100: distutils fails because it expects a compiler to be installed, and because, at least on my phone, it writes to temporary .sh files which aren't marked executable, and then tries to execute them.
  • Some tests (248: pwd) fail because of Bionic's broken user-related functions (getpwent() and friends) support.
  • 47: cmd_line fails because of broken UTF-8. This may be a result of the broken locale implementation. Fixed by f89ccb5.
  • Some tests (105: email) fail because of an unset timezone. This may be a result of the broken locale implementation. Fixed by 9e1b39d.
  • Signals/faults seem to be broken, failing 112: faulthandler and 211: os.
  • Android doesn't set $HOME, breaking 239: posixpath.
  • Test 286: ssl and 316: threading seem to hang the entire test run. They had to be skipped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant