Home
last modified time | relevance | path

Searched refs:check_ast_roundtrip (Results 1 – 1 of 1) sorted by relevance

/third_party/python/Lib/test/
Dtest_unparse.py122 def check_ast_roundtrip(self, code1, **kwargs): member in ASTTestCase
153 self.check_ast_roundtrip(r"""f'{f"{0}"*3}'""")
154 self.check_ast_roundtrip(r"""f'{f"{y}"*3}'""")
155 self.check_ast_roundtrip("""f''""")
156 self.check_ast_roundtrip('''f"""'end' "quote\\""""''')
160 self.check_ast_roundtrip("""f'''{"'"}'''""")
161 self.check_ast_roundtrip('''f\'\'\'-{f"""*{f"+{f'.{x}.'}+"}*"""}-\'\'\'''')
162 self.check_ast_roundtrip('''f\'\'\'-{f"""*{f"+{f'.{x}.'}+"}*"""}-'single quote\\'\'\'\'''')
163 self.check_ast_roundtrip('f"""{\'\'\'\n\'\'\'}"""')
164 self.check_ast_roundtrip('f"""{g(\'\'\'\n\'\'\')}"""')
[all …]