'Test that doctests which output bytes fail in Python 3 when
the ALLOW_BYTES option is not used. The same test should pass
in Python 2 (#1287).'

def test_bytes_literal(self, testdir):

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