[pypy-issue] [issue1171] call to import pypy's own test.test_audioop yields no can do

Ian Delaney tracker at bugs.pypy.org
Tue Jun 12 17:36:43 CEST 2012


New submission from Ian Delaney <della5 at iinet.com.au>:

another one to the list.
tests in mechanize(-0.2.5) sees pypy failing to import its own module.

from mechanize-0.2.5/test/test_unittest.py;

    def test_loadTestsFromName__module_not_loaded(self):
        # We're going to try to load this module as a side-effect, so it
        # better not be loaded before we try.
        #
        # Why pick audioop? Google shows it isn't used very often, so there's
        # a good chance that it won't be imported when this test is run
        module_name = 'audioop'

        import sys


It occurs twice in 2 tests of similar names;
test_loadTestsFromName__module_not_loaded
test_loadTestsFromNames__module_not_loaded

I tried it in a pypy interpreter and was amazed to find it to import only a
handful of modules from the folder
/usr/lib64/pypy1.8/lib-python/2.7/test/

It definitely can't manage it.
from the irc:#pypy

<ronny> idella5: seems like without a working audioop module one cant import it

----------
messages: 4426
nosy: idella5, pypy-issue
priority: performance bug
release: 1.9
status: chatting
title: call to import pypy's own test.test_audioop yields no can do

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1171>
________________________________________


More information about the pypy-issue mailing list