Author: Manuel Jacob <m...@manueljacob.de> Branch: py3.3 Changeset: r82321:040589830b1d Date: 2016-02-19 02:54 +0100 http://bitbucket.org/pypy/pypy/changeset/040589830b1d/
Log: Fix test_structseq.py by not checking _structseq's __file__. The __file__ attribute is not present on the _structseq module because of import bootstrap issues. diff --git a/pypy/module/test_lib_pypy/test_structseq.py b/pypy/module/test_lib_pypy/test_structseq.py --- a/pypy/module/test_lib_pypy/test_structseq.py +++ b/pypy/module/test_lib_pypy/test_structseq.py @@ -6,7 +6,8 @@ spaceconfig = dict(usemodules=('binascii', 'struct',)) def setup_class(cls): - cls.w__structseq = import_lib_pypy(cls.space, '_structseq') + cls.w__structseq = cls.space.appexec( + [], "(): import _structseq; return _structseq") def w_get_mydata(self): _structseq = self._structseq _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit