New issue 597: TypeError: compile() expected string without null bytes
https://bitbucket.org/hpk42/pytest/issue/597/typeerror-compile-expected-string-without
Chakra Medavarapu:
We are seeing this error on Windows and linux with pytest-2.6.1 and 2.6.2.
Let me know if you need more information.
{code}
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\main.py", line 84, in
wrap_session
INTERNALERROR> doit(config, session)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\main.py", line 122, in
_main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\core.py", line 413, in
__call__
INTERNALERROR> return self._docall(methods, kwargs)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\core.py", line 424, in
_docall
INTERNALERROR> res = mc.execute()
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\core.py", line 315, in
execute
INTERNALERROR> res = method(**kwargs)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\main.py", line 142, in
pytest_runtestloop
INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item,
nextitem=nextitem)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\core.py", line 413, in
__call__
INTERNALERROR> return self._docall(methods, kwargs)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\core.py", line 424, in
_docall
INTERNALERROR> res = mc.execute()
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\core.py", line 315, in
execute
INTERNALERROR> res = method(**kwargs)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\runner.py", line 65,
in pytest_runtest_protocol
INTERNALERROR> runtestprotocol(item, nextitem=nextitem)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\runner.py", line 72,
in runtestprotocol
INTERNALERROR> rep = call_and_report(item, "setup", log)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\runner.py", line 111,
in call_and_report
INTERNALERROR> report = hook.pytest_runtest_makereport(item=item, call=call)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\main.py", line 166, in
call_matching_hooks
INTERNALERROR> return hookmethod.pcall(plugins, **kwargs)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\core.py", line 417, in
pcall
INTERNALERROR> return self._docall(methods, kwargs)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\core.py", line 424, in
_docall
INTERNALERROR> res = mc.execute()
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\core.py", line 315, in
execute
INTERNALERROR> res = method(**kwargs)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\runner.py", line 217,
in pytest_runtest_makereport
INTERNALERROR> style=item.config.option.tbstyle)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\python.py", line 593,
in _repr_failure_py
INTERNALERROR> style=style)
INTERNALERROR> File "c:\testtools\pytest-2.6.2\_pytest\main.py", line 411, in
_repr_failure_py
INTERNALERROR> style=style, tbfilter=tbfilter)
INTERNALERROR> File
"c:\testtools\Python27\lib\site-packages\py-1.4.24-py2.7.egg\py\_code\code.py",
line 412, in getrepr
INTERNALERROR> return fmt.repr_excinfo(self)
INTERNALERROR> File
"c:\testtools\Python27\lib\site-packages\py-1.4.24-py2.7.egg\py\_code\code.py",
line 589, in repr_excinfo
INTERNALERROR> reprtraceback = self.repr_traceback(excinfo)
INTERNALERROR> File
"c:\testtools\Python27\lib\site-packages\py-1.4.24-py2.7.egg\py\_code\code.py",
line 581, in repr_traceback
INTERNALERROR> reprentry = self.repr_traceback_entry(entry, einfo)
INTERNALERROR> File
"c:\testtools\Python27\lib\site-packages\py-1.4.24-py2.7.egg\py\_code\code.py",
line 528, in repr_traceback_entry
INTERNALERROR> source = self._getentrysource(entry)
INTERNALERROR> File
"c:\testtools\Python27\lib\site-packages\py-1.4.24-py2.7.egg\py\_code\code.py",
line 455, in _getentrysource
INTERNALERROR> source = entry.getsource(self.astcache)
INTERNALERROR> File
"c:\testtools\Python27\lib\site-packages\py-1.4.24-py2.7.egg\py\_code\code.py",
line 204, in getsource
INTERNALERROR> astnode=astnode)
INTERNALERROR> File
"c:\testtools\Python27\lib\site-packages\py-1.4.24-py2.7.egg\py\_code\source.py",
line 367, in getstatementrange_ast
INTERNALERROR> astnode = compile(content, "source", "exec", 1024) # 1024
for AST
INTERNALERROR> TypeError: compile() expected string without null bytes
{code}
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit