Skip to content

Warn on missing testdata submodule #122

@SimonSapin

Description

@SimonSapin

Steps to reproduce:

git clone https://github.com/html5lib/html5lib-python.git
cd html5lib-python
tox

The tests fail with error messages like:

FileNotFoundError: [Errno 2] No such file or directory: '…/html5lib-python/html5lib/tests/testdata/encoding/chardet/test_big5.txt'

The reason is that git clone does not clone/checkout submodules by default. The fix is to run git submodule update --init.

When finding html5lib/tests/testdata empty, the test harness should print an appropriate warning with instructions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy