(self)
| 197 | |
| 198 | @pytest.mark.skip("This test requires manual intervention") |
| 199 | def test_issue_35(self): |
| 200 | conn = self.connect() |
| 201 | c = conn.cursor() |
| 202 | print("sudo killall -9 mysqld within the next 10 seconds") |
| 203 | try: |
| 204 | c.execute("select sleep(10)") |
| 205 | self.fail() |
| 206 | except pymysql.OperationalError as e: |
| 207 | self.assertEqual(2013, e.args[0]) |
| 208 | |
| 209 | def test_issue_36(self): |
| 210 | # connection 0 is super user, connection 1 isn't |