mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Removed some leftovers from the str8 days
This commit is contained in:
parent
4d279c1f80
commit
b2b6262831
3 changed files with 1 additions and 8 deletions
|
@ -586,10 +586,6 @@ class CommonTest(BaseTest):
|
||||||
a = self.type2test('DNSSEC')
|
a = self.type2test('DNSSEC')
|
||||||
b = self.type2test('')
|
b = self.type2test('')
|
||||||
for c in a:
|
for c in a:
|
||||||
## # Special case for the str8, since indexing returns a integer
|
|
||||||
## # XXX Maybe it would be a good idea to seperate str8's tests...
|
|
||||||
## if self.type2test == str8:
|
|
||||||
## c = chr(c)
|
|
||||||
b += c
|
b += c
|
||||||
hash(b)
|
hash(b)
|
||||||
self.assertEqual(hash(a), hash(b))
|
self.assertEqual(hash(a), hash(b))
|
||||||
|
|
|
@ -801,9 +801,6 @@ class BytearrayPEP3137Test(unittest.TestCase,
|
||||||
test.buffer_tests.MixinBytesBufferCommonTests):
|
test.buffer_tests.MixinBytesBufferCommonTests):
|
||||||
def marshal(self, x):
|
def marshal(self, x):
|
||||||
return bytearray(x)
|
return bytearray(x)
|
||||||
# TODO this should become:
|
|
||||||
#return bytearray(x)
|
|
||||||
# once the bytes -> bytearray and str8 -> bytes rename happens
|
|
||||||
|
|
||||||
def test_returns_new_copy(self):
|
def test_returns_new_copy(self):
|
||||||
val = self.marshal(b'1234')
|
val = self.marshal(b'1234')
|
||||||
|
|
|
@ -750,7 +750,7 @@ PyTclObject_TclString(PyObject *self)
|
||||||
|
|
||||||
/* Like _str, but create Unicode if necessary. */
|
/* Like _str, but create Unicode if necessary. */
|
||||||
PyDoc_STRVAR(PyTclObject_string__doc__,
|
PyDoc_STRVAR(PyTclObject_string__doc__,
|
||||||
"the string representation of this object, either as str8 or str");
|
"the string representation of this object, either as str or bytes");
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
PyTclObject_string(PyTclObject *self, void *ignored)
|
PyTclObject_string(PyTclObject *self, void *ignored)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue