summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-04-22 12:08:36 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-04-22 12:08:36 (GMT)
commitdcb2403022520028a633143602359a30080ed257 (patch)
tree63600ee89e86589546a6e38a65cd453c474a5109 /Lib
parentc303c12160090f926d9ffc582a85b82803785e4d (diff)
downloadcpython-dcb2403022520028a633143602359a30080ed257.zip
cpython-dcb2403022520028a633143602359a30080ed257.tar.gz
cpython-dcb2403022520028a633143602359a30080ed257.tar.bz2
Issue #8485: PyUnicode_FSConverter() doesn't accept bytearray object anymore,
you have to convert your bytearray filenames to bytes
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_bytes.py7
-rw-r--r--Lib/test/test_os.py9
2 files changed, 0 insertions, 16 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index 06ff4c9..16203a5 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -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):
#
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 557f04d..b91f97b 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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,