diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-02-07 17:16:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 17:16:43 +0100 |
commit | e1e2a8f67114347712dff4c9915c32e24604cba4 (patch) | |
tree | d691d9eaeb4e96f6c292b8d0dfa3aa27b4f289b2 /pkgs/tools/admin | |
parent | 137fbd84051e01315f31540798d81ab17de02497 (diff) | |
parent | fd6c52733b95ee8aff5cc6f18e1c8df17a5ea809 (diff) |
Merge pull request #214972 from jfly/issue-211415-disable-failing-mycli-test
mycli: skip broken test
Diffstat (limited to 'pkgs/tools/admin')
-rw-r--r-- | pkgs/tools/admin/mycli/default.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/pkgs/tools/admin/mycli/default.nix b/pkgs/tools/admin/mycli/default.nix index bf1ad3cfe47b5..c1753fe1a563c 100644 --- a/pkgs/tools/admin/mycli/default.nix +++ b/pkgs/tools/admin/mycli/default.nix @@ -30,16 +30,24 @@ buildPythonApplication rec { sqlparse ]; - nativeCheckInputs = [ pytest glibcLocales ]; + nativeCheckInputs = [ pytestCheckHook glibcLocales ]; - checkPhase = '' + preCheck = '' export HOME=. export LC_ALL="en_US.UTF-8" - - py.test \ - --ignore=mycli/packages/paramiko_stub/__init__.py ''; + disabledTestPaths = [ + "mycli/packages/paramiko_stub/__init__.py" + ]; + + disabledTests = [ + # Note: test_auto_escaped_col_names is currently failing due to a bug upstream. + # TODO: re-enable this test once there is a fix upstream. See + # https://github.com/dbcli/mycli/issues/1103 for details. + "test_auto_escaped_col_names" + ]; + postPatch = '' substituteInPlace setup.py \ --replace "cryptography == 36.0.2" "cryptography" |