Skip to content

Commit

Permalink
Include example in sdist to fix tests
Browse files Browse the repository at this point in the history
Include the example files in the source distribuation, in order to fix
the following test failure:

```
_______________________________________ Test_RegisteringCodec.test_can_correctly_translate_file _______________________________________
tests/test_spec_codec.py:133: in test_can_correctly_translate_file
    with open(os.path.join(example_dir, "test.py")) as fle:
E   FileNotFoundError: [Errno 2] No such file or directory: '/tmp/portage/dev-python/noseofyeti-2.4.6/work/noseofyeti-2.4.6/tests/../ex
ample/test.py'
        self       = <tests.test_spec_codec.Test_RegisteringCodec object at 0x0000565218fa6f70>
```
  • Loading branch information
mgorny authored and delfick committed Feb 14, 2024
1 parent 80b7498 commit bd97fd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ include = [
"/test.sh",
"/run.sh",
"/pytest.ini",
"/example/*",
"/tests/**",
"/tools/bootstrap_venvstarter.py",
"/tools/requirements.dev.txt",
Expand Down

0 comments on commit bd97fd4

Please sign in to comment.