Skip to content

pytest dose not support raise unittest Skiptest in chinese #4669

@landhu

Description

@landhu
  • [pip list ]
    Package Version

asn1crypto 0.24.0
atomicwrites 1.2.1
attrs 18.2.0
bcrypt 3.1.5
cffi 1.11.5
colorama 0.4.0
cryptography 2.4.2
enum34 1.1.6
funcsigs 1.0.2
idna 2.8
ipaddress 1.0.22
lxml 4.2.5
more-itertools 4.3.0
namedlist 1.7
nose 1.3.7
nose-allure-plugin 1.0.5
nose-printlog 0.2.0
noselog 0.0.5
paramiko 2.4.2
pathlib2 2.3.2
Pillow 5.3.0
pip 18.1
pluggy 0.8.0
py 1.7.0
pyasn1 0.4.4
pycparser 2.19
PyMySQL 0.9.3
PyNaCl 1.3.0
pytest 3.9.3
pytest-allure-adaptor 1.7.10
pytest-ordering 0.6
scandir 1.9.0
selenium 2.53.3
setuptools 40.5.0
six 1.11.0
wheel 0.32.2

  • pytest and operating system versions
    pytest
    (venv) E:\workspace\nosetest_lear\test_case>pytest --version
    This is pytest version 3.9.3, imported from e:\workspace\nosetest_lear\venv\lib\site-packages\pytest.pyc
    setuptools registered plugins:
    pytest-ordering-0.6 at e:\workspace\nosetest_lear\venv\lib\site-packages\pytest_ordering_init_.pyc
    pytest-allure-adaptor-1.7.10 at e:\workspace\nosetest_lear\venv\lib\site-packages\allure\pytest_plugin.py

system:
win7

python version:
Python 2.7.8

  • Minimal example if possible
import unittest
class TestClass():
    def test_io(self):
        raise unittest.SkipTest(u'跳过')

when pytest run, the error is
qq 20190123180512

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueeasy issue that is friendly to new contributorplugin: unittestrelated to the unittest integration builtin plugintopic: reportingrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions