Serhiy Storchaka <[email protected]> added the comment:
Something was changed in 3.7, but I do not see differences in unittest that can
cause this.
$ python3.6 -bb testbb.py
testbb.py:7: BytesWarning: str() on a bytes instance
str(b"")
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
$ python3.7 -bb testbb.py
E
======================================================================
ERROR: test_foo (__main__.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "testbb.py", line 7, in test_foo
str(b"")
BytesWarning: str() on a bytes instance
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (errors=1)
Perhaps it is related to issue20361.
----------
components: +Library (Lib) -Tests
nosy: +ncoghlan, rbcollins, serhiy.storchaka, vstinner
versions: +Python 3.6 -Python 3.4, Python 3.5
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue15626>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com