mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -607,14 +607,6 @@ class ExecTests(unittest.TestCase):
|
|||
def test_execvpe_with_bad_arglist(self):
|
||||
self.assertRaises(ValueError, os.execvpe, 'notepad', [], None)
|
||||
|
||||
class ArgTests(unittest.TestCase):
|
||||
def test_bytearray(self):
|
||||
# Issue #7561: posix module didn't release bytearray exports properly.
|
||||
b = bytearray(os.sep.encode('ascii'))
|
||||
self.assertRaises(OSError, os.mkdir, b)
|
||||
# Check object is still resizable.
|
||||
b[:] = b''
|
||||
|
||||
class Win32ErrorTests(unittest.TestCase):
|
||||
def test_rename(self):
|
||||
self.assertRaises(WindowsError, os.rename, support.TESTFN, support.TESTFN+".bak")
|
||||
|
|
@ -872,7 +864,6 @@ class Win32KillTests(unittest.TestCase):
|
|||
|
||||
def test_main():
|
||||
support.run_unittest(
|
||||
ArgTests,
|
||||
FileTests,
|
||||
StatAttributeTests,
|
||||
EnvironTests,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue