我已经使用守护进程和q.py侦听器在Win7开发计算机上设置了Mobwrite。客户机测试套件通过,但当我运行服务器测试套件时,所有操作都会失败,并出现以下响应:
Question: U:user10259538167863824 f:0:unittest10259538167863824 R:0:Hello world Expected: u:user10259538167863824 F:0:unittest10259538167863824 D:0:=11 Actual: u:user10259538167863824 F:0:unittest10259538167863824 D:0:=11 Diff: u:user10259538167863824 ¶ F:0:unittest10259538167863824 ¶ D:0:=11¶ ¶ ¶
我假设这和行尾有关,但我不知道该怎么办。有人能解释一下吗?在
非常感谢!在
PS:我运行的是Python2.7
它发生在Chrome 8.0.552.224/FF 3.6.12/IE 8.0.7600.16385中
另外,我用CGI运行q.py,而不是mod峎python。在
以下是原始结果:
…并解码以便于阅读:
^{pr2}$…这是测试套件的服务器输出
MobWrite支持小组可能是问这个问题的最佳地点: http://groups.google.com/group/mobwrite
我同意单元测试可能由于行尾而失败。MobWrite总是使用\n作为其行结尾。如果使用ASCII将单元测试(XML文件)传输到Windows框中,那么将它们注入行结尾听起来很合理。在
我明天再看看能不能重现。同时,如果所有的单元测试都像这样“失败”,那么我会接受MobWrite运行良好,而这些测试只是假的。继续发展!在
相关问题 更多 >
编程相关推荐