Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.urwid: disable tests for pythons < 3 #95339

Closed
wants to merge 1 commit into from

Conversation

DIzFer
Copy link
Contributor

@DIzFer DIzFer commented Aug 13, 2020

Motivation for this change

python2Packages.urwid fails to build, as per #94684

Disabling tests lets it build without apparent breakage on the only package in my system that depends on it (targetcli).

I'm also opening another PR to make targetcli build with python3, which I think is preferable in any case where that's an option

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@DIzFer
Copy link
Contributor Author

DIzFer commented Aug 13, 2020

salut_a_toi seemed to be broken before because of this, but now still fails because of python2.7-wokkel-0.7.0
ImportError: No module named zope.interface.verify

@@ -9,6 +9,8 @@ buildPythonPackage rec {
sha256 = "09nmi2nmvpcmbh3w3fb0dn0c7yp7r20i5pfcr6q722xh6mp8cw3q";
};

# tests fail in python2
doCheck = pythonAtLeast "3.0";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mind adding:

  pythonImportsCheck = [ "urwid" ];

and then I can close mine #96104

@DIzFer
Copy link
Contributor Author

DIzFer commented Aug 24, 2020 via email

@DIzFer DIzFer closed this Aug 24, 2020
@DIzFer DIzFer deleted the urwid-tests-py2 branch August 24, 2020 14:12
@jonringer
Copy link
Contributor

I did want to ask, what does pythonImportsCheck do? I also didn't know about it.

From my template:

If tests are not available, then please use pythonImportsCheck to import the most important modules. This isn't as good as unit tests, but will usually give a good indication of run-time errors. Please see pythonImportsCheck documentation for more information.

@DIzFer
Copy link
Contributor Author

DIzFer commented Aug 24, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants