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

Method test_issue_34

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

Source from the content-addressed store, hash-verified

177
178class TestNewIssues(base.PyMySQLTestCase):
179 def test_issue_34(self):
180 try:
181 pymysql.connect(host="localhost", port=1237, user="root")
182 self.fail()
183 except pymysql.OperationalError as e:
184 self.assertEqual(2003, e.args[0])
185 except Exception:
186 self.fail()
187
188 def test_issue_33(self):
189 conn = pymysql.connect(charset="utf8", **self.databases[0])

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected