From 333ce9849d55b9f8de16d1c1ca4138a27281b6cf Mon Sep 17 00:00:00 2001 From: reut Date: Thu, 6 Apr 2017 10:54:47 +0000 Subject: [PATCH] added acceptance test for unicode plugin names --- testing/acceptance_test.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index fe02d82f0..85dd83969 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -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