--- you can reply above this line --- New issue 209: ValueError: compile(): unrecognised flags https://bitbucket.org/hpk42/pytest/issue/209/valueerror-compile-unrecognised-flags
James Laska: With the 2.3.2 release, it seems pytest is now failing on my python-2.4.3 environment. Sadly, I'm unable to upgrade python in this environment. My environment consists of ... * python-2.4.3 * py-1.4.11 * pytest-2.3.2 ``` #!pre # python setup.py test running test running egg_info creating cloud_app_sanity.egg-info writing cloud_app_sanity.egg-info/PKG-INFO writing top-level names to cloud_app_sanity.egg-info/top_level.txt writing dependency_links to cloud_app_sanity.egg-info/dependency_links.txt writing manifest file 'cloud_app_sanity.egg-info/SOURCES.txt' reading manifest file 'cloud_app_sanity.egg-info/SOURCES.txt' writing manifest file 'cloud_app_sanity.egg-info/SOURCES.txt' running build_ext Checking .pth file support in . /usr/bin/python -E -c pass Searching for pytest Reading http://cheeseshop.python.org/pypi/pytest/ Reading http://pytest.org Reading http://cheeseshop.python.org/pypi/pytest/2.3.2 Best match: pytest 2.3.2 Downloading http://pypi.python.org/packages/source/p/pytest/pytest-2.3.2.zip Processing pytest-2.3.2.zip Running pytest-2.3.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-qcpd1a/pytest-2.3.2/egg-dist-tmp--9oYJ_ File "build/bdist.linux-x86_64/egg/_pytest/assertion/rewrite.py", line 37 PYC_EXT = ".py" + ("c" if __debug__ else "o") ^ SyntaxError: invalid syntax File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/pytest-2.3.2-py2.4.egg/_pytest/assertion/rewrite.py", line 37 PYC_EXT = ".py" + ("c" if __debug__ else "o") ^ SyntaxError: invalid syntax Installed /var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/pytest-2.3.2-py2.4.egg Searching for py>=1.4.11 Reading http://cheeseshop.python.org/pypi/py/ Reading http://cheeseshop.python.org/pypi/py/1.3.4 Reading http://pylib.org Reading http://cheeseshop.python.org/pypi/py/1.3.3 Reading http://cheeseshop.python.org/pypi/py/1.3.2 Reading http://cheeseshop.python.org/pypi/py/1.3.1 Reading http://cheeseshop.python.org/pypi/py/1.3.0 Reading http://cheeseshop.python.org/pypi/py/1.4.4 Reading http://cheeseshop.python.org/pypi/py/1.4.5 Reading http://cheeseshop.python.org/pypi/py/1.4.6 Reading http://cheeseshop.python.org/pypi/py/1.4.7 Reading http://cheeseshop.python.org/pypi/py/1.4.0 Reading http://cheeseshop.python.org/pypi/py/1.4.1 Reading http://cheeseshop.python.org/pypi/py/1.4.2 Reading http://cheeseshop.python.org/pypi/py/1.4.3 Reading http://cheeseshop.python.org/pypi/py/1.4.8 Reading http://cheeseshop.python.org/pypi/py/1.4.9 Reading http://cheeseshop.python.org/pypi/py/0.9.2 Reading http://codespeak.net/py/0.9.2/download.html Reading http://cheeseshop.python.org/pypi/py/1.0.2 Reading http://cheeseshop.python.org/pypi/py/1.1.1 Reading http://cheeseshop.python.org/pypi/py/1.1.0 Reading http://cheeseshop.python.org/pypi/py/1.2.0 Reading http://cheeseshop.python.org/pypi/py/1.2.1 Reading http://cheeseshop.python.org/pypi/py/1.4.10 Reading http://cheeseshop.python.org/pypi/py/1.4.11 Best match: py 1.4.11 Downloading http://pypi.python.org/packages/source/p/py/py-1.4.11.zip Processing py-1.4.11.zip Running py-1.4.11/setup.py -q bdist_egg --dist-dir /tmp/easy_install-f1Qfss/py-1.4.11/egg-dist-tmp-zbTJjS Installed /var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/py-1.4.11-py2.4.egg Running: pytest -v -l --tb=native --junitxml=results/1351254011.xml --resultlog=results/1351254011.log -k audreyvm -unregister testsuite INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/pytest-2.3.2-py2.4.egg/_pytest/main.py", line 77, in wrap_session INTERNALERROR> config.pluginmanager.do_configure(config) INTERNALERROR> File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/pytest-2.3.2-py2.4.egg/_pytest/core.py", line 268, in do_configure INTERNALERROR> config.hook.pytest_configure(config=self._config) INTERNALERROR> File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/pytest-2.3.2-py2.4.egg/_pytest/core.py", line 422, in __call__ INTERNALERROR> return self._docall(methods, kwargs) INTERNALERROR> File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/pytest-2.3.2-py2.4.egg/_pytest/core.py", line 433, in _docall INTERNALERROR> res = mc.execute() INTERNALERROR> File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/pytest-2.3.2-py2.4.egg/_pytest/core.py", line 351, in execute INTERNALERROR> res = method(**kwargs) INTERNALERROR> File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/pytest-2.3.2-py2.4.egg/_pytest/assertion/__init__.py", line 54, in pytest_configure INTERNALERROR> warn_about_missing_assertion(mode) INTERNALERROR> File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/pytest-2.3.2-py2.4.egg/_pytest/assertion/reinterpret.py", line 22, in __init__ INTERNALERROR> source = source.getstatement(f.lineno, assertion=True) INTERNALERROR> File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/py-1.4.11-py2.4.egg/py/_code/source.py", line 105, in getstatement INTERNALERROR> start, end = self.getstatementrange(lineno, assertion) INTERNALERROR> File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/py-1.4.11-py2.4.egg/py/_code/source.py", line 114, in getstatementrange INTERNALERROR> ast, start, end = getstatementrange_ast(lineno, self) INTERNALERROR> File "/var/audrey/tooling/user/KATELLO_REGISTER/cloud-app-sanity/py-1.4.11-py2.4.egg/py/_code/source.py", line 364, in getstatementrange_ast INTERNALERROR> astnode = compile(content, "source", "exec", 1024) # 1024 for AST INTERNALERROR> ValueError: compile(): unrecognised flags ``` -- This is an issue notification from bitbucket.org. You are receiving this either because you are the owner of the issue, or you are following the issue. _______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev