added acceptance test for unicode plugin names
This commit is contained in:
parent
417b54abed
commit
333ce9849d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue