summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_str.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-08-02 21:58:05 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2008-08-02 21:58:05 (GMT)
commit92a624019867885028fe0b326457b461e672eb3b (patch)
treec7b9f682618db83a5d5b2bd2980356fc7ecb948b /Lib/test/test_str.py
parent727bd0b6874b32a42762251888cdfc2484286867 (diff)
downloadcpython-92a624019867885028fe0b326457b461e672eb3b.zip
cpython-92a624019867885028fe0b326457b461e672eb3b.tar.gz
cpython-92a624019867885028fe0b326457b461e672eb3b.tar.bz2
Preemptively backport the relevant parts of r65420
Diffstat (limited to 'Lib/test/test_str.py')
-rw-r--r--Lib/test/test_str.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_str.py b/Lib/test/test_str.py
index 535e66a..044711c 100644
--- a/Lib/test/test_str.py
+++ b/Lib/test/test_str.py
@@ -364,6 +364,9 @@ class StrTest(
self.assertRaises(ValueError, format, "", "-")
self.assertRaises(ValueError, "{0:=s}".format, '')
+ def test_buffer_is_readonly(self):
+ self.assertRaises(TypeError, sys.stdin.readinto, b"")
+
def test_main():
test_support.run_unittest(StrTest)