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

Method test_unary_parens

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

Source from the content-addressed store, hash-verified

317 self.check_ast_roundtrip(while_else)
318
319 def test_unary_parens(self):
320 self.check_ast_roundtrip("(-1)**7")
321 self.check_ast_roundtrip("(-1.)**8")
322 self.check_ast_roundtrip("(-1j)**6")
323 self.check_ast_roundtrip("not True or False")
324 self.check_ast_roundtrip("True or not False")
325
326 def test_integer_parens(self):
327 self.check_ast_roundtrip("3 .__abs__()")

Callers

nothing calls this directly

Calls 1

check_ast_roundtripMethod · 0.80

Tested by

no test coverage detected