'Comparing approx instances inside lists should not produce an error in the detailed diff.
Integration test for issue #2111.'

def test_unicode_plus_minus(self, testdir):

    testdir.makepyfile('\n                                                import    pytest\n                                                def    test_foo():\n                                                                assert    [3]    ==    [pytest.approx(4)]\n                                ')
    expected = '4.0e-06'
    if (sys.version_info[:2] == (2, 6)):
        expected = '???'
    result = testdir.runpytest()
    result.stdout.fnmatch_lines(['*At    index    0    diff:    3    !=    4    *    {0}'.format(expected), '=*    1    failed    in    *='])
