1. holger krekel
  2. py-trunk
Issue #119 resolved

Fail to import __init__.py - INTERNALERROR> self = <py._test.session.Session object at 0x022B5E30>

Sorin Sbarnea
created an issue

For some reason py.test fails on any init.py file.

How to reproduce: create an empty init.py execute py.test --collectonly

System: Windows 7, Python 2.6 x86, Py 1.3.3

<Directory '1'> <Module 'init.py'> INTERNALERROR> self = <py.test.session.Session object at 0x02289EB0> INTERNALERROR> colitems = [<Directory '1'>] INTERNALERROR> INTERNALERROR> def main(self, colitems): INTERNALERROR> """ main loop for running tests. """ INTERNALERROR> self.shouldstop = False INTERNALERROR> self.sessionstarts() INTERNALERROR> exitstatus = EXIT_OK INTERNALERROR> try: INTERNALERROR> > self._mainloop(colitems) INTERNALERROR> INTERNALERROR> colitems = [<Directory '1'>] INTERNALERROR> exitstatus = 0 INTERNALERROR> self = <py._test.session.Session object at 0x02289EB0> INTERNALERROR> INTERNALERROR> C:\lib\Python26.x86\lib\site-packages\py-1.3.3-py2.6.egg\py_test\session.py:113: INTERNALERROR> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ...

Comments (4)

  1. Sorin Sbarnea reporter

    I installed the new package and it does not give this error. It seams to work just fine so please publish it to `pypi` so others will not encounter this issue. If it has other bugs you can publish another one anytime :D

    Thanks.

  2. Log in to comment