Message331688
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. |
|
Date |
User |
Action |
Args |
2018-12-12 10:47:02 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ncoghlan, vstinner, rbcollins, ezio.melotti, Arfrever, michael.foord, chris.jerdonek, BreamoreBoy, Ben.Darnell |
2018-12-12 10:47:02 | serhiy.storchaka | set | messageid: <1544611622.42.0.788709270274.issue15626@psf.upfronthosting.co.za> |
2018-12-12 10:47:02 | serhiy.storchaka | link | issue15626 messages |
2018-12-12 10:47:02 | serhiy.storchaka | create | |
|