Message331688
| Author |
serhiy.storchaka |
| Recipients |
Arfrever, Ben.Darnell, BreamoreBoy, chris.jerdonek, ezio.melotti, michael.foord, ncoghlan, rbcollins, serhiy.storchaka, vstinner |
| Date |
2018年12月12日.10:47:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1544611622.42.0.788709270274.issue15626@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|