python3Packages.apsw: patch tests

This commit is contained in:
Martin Weinelt
2022-03-14 00:29:07 +01:00
parent ece3282c7b
commit c0412ea024
@@ -29,6 +29,14 @@ buildPythonPackage rec {
pytestCheckHook
];
# Works around the following error by dropping the call to that function
# def print_version_info(write=write):
# > write(" Python " + sys.executable + " " + str(sys.version_info) + "\n")
# E TypeError: 'module' object is not callable
preCheck = ''
sed -i '/print_version_info(write)/d' tests.py
'';
pytestFlagsArray = [
"tests.py"
];