mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Use Py_CLEAR(). Add unrelated test.
This commit is contained in:
parent
b6f7fb7327
commit
6429a4727e
2 changed files with 4 additions and 1 deletions
|
@ -23,6 +23,9 @@ class TestJointOps(unittest.TestCase):
|
|||
self.s = self.thetype(word)
|
||||
self.d = dict.fromkeys(word)
|
||||
|
||||
def test_new_or_init(self):
|
||||
self.assertRaises(TypeError, self.thetype, [], 2)
|
||||
|
||||
def test_uniquification(self):
|
||||
actual = sorted(self.s)
|
||||
expected = sorted(self.d)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue