[staging-next] python312Packages.types-lxml: fix tests (#378668)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by Arne Keller Sandro and committed by GitHub a4bcd7a2 b6f2f819

+14 -9
+14 -9
pkgs/development/python-modules/types-lxml/default.nix
··· 13 13 typeguard, 14 14 types-beautifulsoup4, 15 15 typing-extensions, 16 + hypothesis, 16 17 }: 17 18 18 19 buildPythonPackage rec { ··· 40 41 nativeCheckInputs = [ 41 42 beautifulsoup4 42 43 html5lib 44 + hypothesis 43 45 lxml 44 46 pyright 45 47 pytestCheckHook ··· 47 49 ]; 48 50 49 51 pythonImportsCheck = [ "lxml-stubs" ]; 52 + 53 + # there may only be one conftest.py 54 + preCheck = '' 55 + rm -r tests/static 56 + mv tests/runtime/* tests/ 57 + rmdir tests/runtime 58 + substituteInPlace tests/conftest.py \ 59 + --replace-fail '"pytest-revealtype-injector",' "" \ 60 + --replace-fail 'runtime.register_strategy' 'tests.register_strategy' 61 + ''; 50 62 51 63 disabledTests = [ 52 - # AttributeError: 'bytes' object has no attribute 'find_class' 53 - # https://github.com/abelcheung/types-lxml/issues/34 54 - "test_bad_methodfunc" 55 - "test_find_class" 56 - "test_find_rel_links" 57 - "test_iterlinks" 58 - "test_make_links_absolute" 59 - "test_resolve_base_href" 60 - "test_rewrite_links" 64 + "test_single_ns_all_tag_2" 65 + "test_default_ns" 61 66 ]; 62 67 63 68 meta = with lib; {