(self, exc_type, exc_value, traceback)
| 37 | return self |
| 38 | |
| 39 | def __exit__(self, exc_type, exc_value, traceback): |
| 40 | if self._grant: |
| 41 | self._c.execute(f"REVOKE SELECT ON {self._db}.* FROM {self._user}") |
| 42 | if self._created: |
| 43 | self._c.execute("DROP USER %s" % self._user) |
| 44 | |
| 45 | |
| 46 | class TestAuthentication(base.PyMySQLTestCase): |