'Test that doctests which output unicode fail in Python 2 when
the ALLOW_UNICODE option is not used. The same test should pass
in Python 3.'

def test_unicode_string(self, testdir):

    testdir.maketxtfile(test_doc="\n                                                >>>    b'12'.decode('ascii')\n                                                '12'\n                                ")
    reprec = testdir.inline_run()
    passed = int((sys.version_info[0] >= 3))
    reprec.assertoutcome(passed=passed, failed=int((not passed)))
