(self)
| 177 | |
| 178 | class 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]) |