]> git.pld-linux.org Git - packages/python-pytest.git/blob - python-pytest-tests.patch
- tests BR: python more_itertools module
[packages/python-pytest.git] / python-pytest-tests.patch
1 --- pytest-3.6.3/testing/code/test_excinfo.py.orig      2018-07-04 23:23:50.000000000 +0200
2 +++ pytest-3.6.3/testing/code/test_excinfo.py   2018-07-18 05:46:24.873976914 +0200
3 @@ -371,7 +371,8 @@
4      for item in excinfo.traceback:
5          print(item)  # XXX: for some reason jinja.Template.render is printed in full
6          item.source  # shouldnt fail
7 -        if item.path.basename == "test.txt":
8 +        from six import string_types
9 +        if not isinstance(item.path, string_types) and item.path.basename == "test.txt":
10              assert str(item.source) == "{{ h()}}:"
11  
12  
This page took 0.065236 seconds and 3 git commands to generate.