From d16ced645f345017cbdfe789a4a69a6d3420869c Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Wed, 4 Jan 2017 21:34:02 +0900 Subject: [PATCH] Add test for PyMySQL/mysqlclient-python#137 --- tests/test__mysql.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/test__mysql.py diff --git a/tests/test__mysql.py b/tests/test__mysql.py new file mode 100644 index 0000000..e2cb608 --- /dev/null +++ b/tests/test__mysql.py @@ -0,0 +1,7 @@ +import pytest +import _mysql + + +def test_result_type(): + with pytest.raises(TypeError): + _mysql.result(b"xyz")