Author: Ronan Lamy <ronan.l...@gmail.com> Branch: cleanup-test_lib_pypy Changeset: r95380:8e5be49bf7c4 Date: 2018-11-29 05:29 +0000 http://bitbucket.org/pypy/pypy/changeset/8e5be49bf7c4/
Log: Move test_sqlite3.py to extra_tests/ diff --git a/pypy/module/test_lib_pypy/test_sqlite3.py b/extra_tests/test_sqlite3.py rename from pypy/module/test_lib_pypy/test_sqlite3.py rename to extra_tests/test_sqlite3.py --- a/pypy/module/test_lib_pypy/test_sqlite3.py +++ b/extra_tests/test_sqlite3.py @@ -286,17 +286,17 @@ def test_null_character(con): if not hasattr(_sqlite3, '_ffi') and sys.version_info < (2, 7, 9): pytest.skip("_sqlite3 too old") - with raises(ValueError) as excinfo: + with pytest.raises(ValueError) as excinfo: con("\0select 1") assert str(excinfo.value) == "the query contains a null character" - with raises(ValueError) as excinfo: + with pytest.raises(ValueError) as excinfo: con("select 1\0") assert str(excinfo.value) == "the query contains a null character" cur = con.cursor() - with raises(ValueError) as excinfo: + with pytest.raises(ValueError) as excinfo: cur.execute("\0select 2") assert str(excinfo.value) == "the query contains a null character" - with raises(ValueError) as excinfo: + with pytest.raises(ValueError) as excinfo: cur.execute("select 2\0") assert str(excinfo.value) == "the query contains a null character" _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit