Set literals
This commit is contained in:
parent
8fe5c77acd
commit
d4e5e88986
@ -238,7 +238,7 @@ class KeyConstraintDictAdvancedTests(unittest.TestCase):
|
|||||||
kcd["foo"] = None
|
kcd["foo"] = None
|
||||||
assert kcd.missing() == set()
|
assert kcd.missing() == set()
|
||||||
del kcd["foo"]
|
del kcd["foo"]
|
||||||
assert kcd.missing() == set(["foo"])
|
assert kcd.missing() == {"foo"}
|
||||||
|
|
||||||
def test_set_twice(self):
|
def test_set_twice(self):
|
||||||
kcd = util.KeyConstraintDict(
|
kcd = util.KeyConstraintDict(
|
||||||
@ -247,7 +247,7 @@ class KeyConstraintDictAdvancedTests(unittest.TestCase):
|
|||||||
kcd["foo"] = 2
|
kcd["foo"] = 2
|
||||||
assert kcd.missing() == set()
|
assert kcd.missing() == set()
|
||||||
del kcd["foo"]
|
del kcd["foo"]
|
||||||
assert kcd.missing() == set(["foo"])
|
assert kcd.missing() == {"foo"}
|
||||||
|
|
||||||
|
|
||||||
class FormatPTests(unittest.TestCase):
|
class FormatPTests(unittest.TestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user