MCPcopy Index your code
hub / github.com/python/cpython / test_empty_set

Method test_empty_set

Lib/test/test_unparse.py:394–398  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

392 self.check_ast_roundtrip("{'a', 'b', 'c'}")
393
394 def test_empty_set(self):
395 self.assertASTEqual(
396 ast.parse(ast.unparse(ast.Set(elts=[]))),
397 ast.parse('{*()}')
398 )
399
400 def test_set_comprehension(self):
401 self.check_ast_roundtrip("{x for x in range(5)}")

Callers

nothing calls this directly

Calls 2

assertASTEqualMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected