mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Fix a buggy test. str8 objects contained NUL-terminated strings,
bytes objects don't.
This commit is contained in:
parent
4b49131f2b
commit
680d7befc0
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class MemFunctionsTest(unittest.TestCase):
|
|||
self.failUnlessEqual(2, sys.getrefcount(s))
|
||||
self.failUnless(s, "foo bar")
|
||||
|
||||
self.failUnlessEqual(string_at(b"foo bar", 8), "foo bar\0")
|
||||
self.failUnlessEqual(string_at(b"foo bar", 7), "foo bar")
|
||||
self.failUnlessEqual(string_at(b"foo bar", 3), "foo")
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue