Preemptively backport the relevant parts of r65420

This commit is contained in:
Antoine Pitrou 2008-08-02 21:58:05 +00:00
parent 727bd0b687
commit 92a6240198
2 changed files with 4 additions and 1 deletions

View file

@ -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)