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
Test failure with Python 3.8 #263
Comments
The original version passes for me with py3.8.3 on master and develop. |
I am also wondering as these failures do not show up on travis or my local computer. Can you please report your OS, python version and how you installed it. |
I'm on NixOS, Python 3.8.3. |
I suspect this might be due to to the sandbox in which Nix builds packages. Maybe the options are printed on multiple lines if the terminal width is too small? The latter might not be set/recognized/... in the sandbox. |
I am also sometimes working no nixos. I did not have any luck with any of these: nix-shell --pure --command 'python setup.py test -A nixos.khard # error: attribute 'nixos' in selection path 'nixos.khard' not found
nix-shell --pure --command 'python setup.py test -p khard # missing setuptools But I hacked together this { pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
(python3.withPackages(ps: with ps; [
atomicwrites
configobj
ruamel_yaml
setuptools
wheel
twine
unidecode
vobject
coverage
sphinx
importlib-metadata
pip
]))
hyperfine
git
termite # for the terminfo
];
shellHook = ''
alias pip="PIP_PREFIX='$(pwd)/_build/pip_packages' \pip"
export PYTHONPATH="$(pwd)/_build/pip_packages/lib/python3.7/site-packages:$PYTHONPATH"
unset SOURCE_DATE_EPOCH
export TERM=xterm
'';
} I just played around a bit and this seems to be a minimal version that works: { pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
(python3.withPackages(ps: with ps; [
setuptools
]))
git
];
} but than setuptools will download the dependencies itself. I am new to development on nixos (only used arch linux before) and would be |
I just checked https://github.com/NixOS/nixpkgs/blob/34b9b139bbf743e88b5a27cc876a979dae1ace85/pkgs/applications/misc/khard/default.nix and it seems that @matthiasbeyer maintains it. Maybe he can help us? |
I suggest you do |
Maybe @FRidh has some insight. |
What does |
The output of
outside sandbox:
I got these by setting |
@dotlambda I conclude that the sandbox is somehow breaking things here. I am not sure if I can help with that but you can surely use this issue to discuss it. |
This is the commit that changed the |
@dotlambda please check |
Oh that's a surprising cause |
That doesn't work because |
Sandboxing causes the help to be displayed differently when the COLUMNS variable is not set. See lucc/khard#263.
The testsuite currently results in
Thus I patched the testsuite to use
assertRegex
:and get
This does not happen when using Python 3.7.
The text was updated successfully, but these errors were encountered: