doctest-ignore-unicode-0.1.2
توضیحات
Add flag to ignore unicode literal prefixes in doctests
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | doctest-ignore-unicode-0.1.2 |
| نام | doctest-ignore-unicode |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andy Kilner |
| ایمیل نویسنده | gnublde@gmail.com |
| آدرس صفحه اصلی | http://github.com/gnublade/doctest-ignore-unicode |
| آدرس اینترنتی | https://pypi.org/project/doctest-ignore-unicode/ |
| مجوز | Apache License, Version 2.0 |
Overview
========
doctest-ignore-unicode is a plugin (currently only for `Nose`_) that adds
a flag to ignore unicode literal prefixes in doctests.
.. _Nose: http://somethingaboutorange.com/mrl/projects/nose
The implmentation is inspired by
https://github.com/nltk/nltk/blob/2and3/nltk/test/doctest_nose_plugin.py
Usage
=====
>>> def hello_world():
... return 'Hello World'
>>> hello_world() # doctest: +IGNORE_UNICODE
u'Hello World'
FAQ
===
Why?
----
If you need to ask you probably don't need it. (Hint: supporting python 2 & 3
in the same codebase).
نحوه نصب
نصب پکیج whl doctest-ignore-unicode-0.1.2:
pip install doctest-ignore-unicode-0.1.2.whl
نصب پکیج tar.gz doctest-ignore-unicode-0.1.2:
pip install doctest-ignore-unicode-0.1.2.tar.gz