def test_python_with_lineno_and_markups(self):
        result = format_to_html(self.env, self.context, """\
{{{#!text/x-python lineno=3 id=b marks=4-5
print 'this is a python sample'
a = b+3
z = "this is a string"
print 'this is the end of the python sample'
}}}
""")
        self.assertTrue(result)
        if pygments_version < parse_version('2.1'):
            self._test('python_with_lineno_and_markups', result)
        else:
            self._test('python_with_lineno_and_markups_pygments_2.1plus', result)
Wrap socket.error, IOError, OSError, select.error to raise new specialized
dataset/ETHPy150Open edgewall/trac/trac/mimeview/tests/pygments.py/PygmentsRendererTestCase.test_python_with_lineno_and_markups--crossover with--dataset/ETHPy150Open benoitc/gunicorn/gunicorn/_compat.py/wrap_error