New issue 548: isinstance check in warn() is inconsistent on py2/py3 https://bitbucket.org/hpk42/pytest/issue/548/isinstance-check-in-warn-is-inconsistent
Andreas Pelme: There is an assertion that reads ``` assert isinstance(code, str) ``` in `warn()` in _pytest/main.py. I guess the purpose here is to check for a Python 2 str or unicode, and Python 3 str. Currently it fails with an assertion error for unicode strings on Python 2. What is the intended behavior here? _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit