python3Packages.astor: fix tests
This commit is contained in:
parent
ad9b5ba4b9
commit
71f1ac28d4
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, fetchpatch }:
|
{ lib, buildPythonPackage, fetchPypi, isPy27, pytestCheckHook, fetchpatch }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "astor";
|
pname = "astor";
|
||||||
|
@ -10,15 +10,15 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
# disable tests broken with python3.6: https://github.com/berkerpeksag/astor/issues/89
|
# disable tests broken with python3.6: https://github.com/berkerpeksag/astor/issues/89
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
checkPhase = ''
|
disabledTests = [
|
||||||
py.test -k 'not check_expressions \
|
"check_expressions"
|
||||||
and not check_astunparse \
|
"check_astunparse"
|
||||||
and not test_convert_stdlib \
|
"convert_stdlib"
|
||||||
and not test_codegen_as_submodule \
|
"codegen_as_submodule"
|
||||||
and not test_positional_only_arguments \
|
"positional_only_arguments"
|
||||||
and not test_codegen_from_root'
|
"codegen_from_root"
|
||||||
'';
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Library for reading, writing and rewriting python AST";
|
description = "Library for reading, writing and rewriting python AST";
|
||||||
|
|
Loading…
Reference in a new issue