This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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