def test_bytes_literal(self, testdir):
    'Test that doctests which output bytes fail in Python 3 when\n        the ALLOW_BYTES option is not used. (#1287).\n        '
    testdir.maketxtfile(test_doc="\n            >>> b'foo'\n            'foo'\n        ")
    reprec = testdir.inline_run()
    reprec.assertoutcome(failed=1)
Test that doctests which output bytes fail in Python 3 when
the ALLOW_BYTES option is not used. (#1287).
def test_bytes_literal(self, testdir):
    'Test that doctests which output bytes fail in Python 3 when\n        the ALLOW_BYTES option is not used. (#1287).\n        '
    testdir.maketxtfile(test_doc="\n            >>> b'foo'\n            'foo'\n        ")
    reprec = testdir.inline_run()
    reprec.assertoutcome(failed=1)