added acceptance test for unicode plugin names

This commit is contained in:
reut 2017-04-06 10:54:47 +00:00
parent 417b54abed
commit 333ce9849d
1 changed files with 14 additions and 0 deletions

View File

@ -793,3 +793,17 @@ def test_zipimport_hook(testdir, tmpdir):
assert result.ret == 0
result.stderr.fnmatch_lines(['*not found*foo*'])
assert 'INTERNALERROR>' not in result.stdout.str()
def test_import_plugin_unicode_name(testdir):
testdir.makepyfile(
myplugin='',
)
testdir.makepyfile("""
def test(): pass
""")
testdir.makeconftest("""
pytest_plugins = [u'myplugin']
""")
r = testdir.runpytest()
assert r.ret == 0