MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / test_issue_35

Method test_issue_35

pymysql/tests/test_issues.py:199–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

cursorMethod · 0.80
executeMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected