New submission from Ned Deily: Issue28082, for 3.6.0b1, modified the re module to use enum.IntFlag. As described in Issue19325, on interpreter startup site.py imports sysconfig which, on OS X, imports _osx_support which imports, among other things, re. Now that re imports enum, a number of collections modules are also imported at startup on OS X which can have a negative performance impact. test_startup_imports of test_site was designed to catch situations like this ... and does.
For 3.6.0b1, I'm going to skip the failing part of the test on OS X only. For 3.6.0b2, I'll plan to revive languishing Issue19325 to at least try to remove the usage of re and then re-enable the skipped test. ---------- assignee: ned.deily components: Macintosh messages: 275945 nosy: ned.deily, ronaldoussoren priority: deferred blocker severity: normal stage: needs patch status: open title: test_startup_imports of test_site fails on OS X due to new import of enum in re versions: Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28095> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com