mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #8485: PyUnicode_FSConverter() doesn't accept bytearray object anymore,
you have to convert your bytearray filenames to bytes
This commit is contained in:
parent
c303c12160
commit
dcb2403022
8 changed files with 104 additions and 151 deletions
|
@ -815,13 +815,6 @@ class ByteArrayTest(BaseBytesTest):
|
|||
self.assertRaises(BufferError, delslice)
|
||||
self.assertEquals(b, orig)
|
||||
|
||||
def test_empty_bytearray(self):
|
||||
# Issue #7561: operations on empty bytearrays could crash in many
|
||||
# situations, due to a fragile implementation of the
|
||||
# PyByteArray_AS_STRING() C macro.
|
||||
self.assertRaises(ValueError, int, bytearray(b''))
|
||||
self.assertRaises((ValueError, OSError), os.mkdir, bytearray(b''))
|
||||
|
||||
|
||||
class AssortedBytesTest(unittest.TestCase):
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue