Commit 5d469580 authored by Jim Fulton's avatar Jim Fulton

use string compatison for requirements to avoid spurious test failures

under Python 2.
parent 190c6d19
...@@ -2691,7 +2691,7 @@ def test_constrained_requirement(): ...@@ -2691,7 +2691,7 @@ def test_constrained_requirement():
... g = _constrained_requirement(c, o) ... g = _constrained_requirement(c, o)
... except IncompatibleConstraintError: ... except IncompatibleConstraintError:
... g = IncompatibleConstraintError ... g = IncompatibleConstraintError
... if g != e: ... if str(g) != str(e):
... print_('failed', o, c, g, '!=', e) ... print_('failed', o, c, g, '!=', e)
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment