我假设您正在运行 Mezzanine 1.3.0,这是当前的稳定版本。目前github中的master分支没有这个问题。我刚刚安装执行了以下操作:
$ pip install git+https://github.com/stephenmcd/mezzanine.git#egg=Mezzanine
$ mezzanine-project project
$ python project/manage.py test
Creating test database for alias 'default'...
.................................................................................
.................................................................................
.................................................................................
...............................s......s..................................s.......
................................................................
----------------------------------------------------------------------
Ran 388 tests in 30.556s
OK (skipped=3)
Destroying test database for alias 'default'...
值得一提的是,test_syntax
在 1.3.0 中失败的方法使用 pyflakes.Checker 和 pep8 Python 模块运行测试。该文件mezzanine/core/models.py
有(有?)语法错误。对提交的简短扫描表明它test_syntax
没有改变。给出错误的特定语法在with_respect_tomezzanine.core.models.Orderable
方法中,它没有任何 PEP8 或 pyflakes 错误。当我针对 1.3.0 版本运行 pyflakes 时:mezzanine.core.models
$ pyflakes ../lib/python2.6/site-packages/mezzanine/core/models.py
../lib/python2.6/site-packages/mezzanine/core/models.py:340: list comprehension
redefines 'name' from line 331