如何在python 2.6中从python 3.1实现unittest.skip? [英] how to implement unittest.skip from python 3.1 in python 2.6?

查看:22
本文介绍了如何在python 2.6中从python 3.1实现unittest.skip?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你知道python 2.6/2.7中python 3.1的unittest.skip的任何实现吗?http://docs.python.org/dev/library/unittest.html#skiping-tests-and-expected-failures

do you know of any implementation of unittest.skip of python 3.1 in python 2.6/2.7? http://docs.python.org/dev/library/unittest.html#skipping-tests-and-expected-failures

谢谢

推荐答案

尝试安装 unittest2包,在 Python 2.7 和 3.2 中添加到单元测试测试框架的新功能的反向移植".

Try installing the unittest2 package, "a backport of the new features added to the unittest testing framework" in Python 2.7 and 3.2.

这篇关于如何在python 2.6中从python 3.1实现unittest.skip?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆