Get a new variable.
(self)
| 764 | return "PYTEST_DONT_REWRITE" in docstring |
| 765 | |
| 766 | def variable(self) -> str: |
| 767 | """Get a new variable.""" |
| 768 | # Use a character invalid in python identifiers to avoid clashing. |
| 769 | name = "@py_assert" + str(next(self.variable_counter)) |
| 770 | self.variables.append(name) |
| 771 | return name |
| 772 | |
| 773 | def assign(self, expr: ast.expr) -> ast.Name: |
| 774 | """Give *expr* a name.""" |
no test coverage detected