| 1 | Description: fix test_doc_examples.py |
| 2 | The examples_path attribute misses initialisation, causing various test |
| 3 | failures. |
| 4 | Author: Étienne Mollier <[email protected]> |
| 5 | Forwarded: https://github.com/G-Node/nixpy/pull/538 |
| 6 | Last-Update: 2024-02-17 |
| 7 | --- |
| 8 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 9 | --- a/nixio/test/test_doc_examples.py |
| 10 | +++ b/nixio/test/test_doc_examples.py |
| 11 | @@ -16,6 +16,8 @@ |
| 12 | |
| 13 | examples_path = Path("docs/source/examples") |
| 14 | |
| 15 | + examples_path = Path("docs/source/examples") |
| 16 | + |
| 17 | def run_script(self, script_name): |
| 18 | file_path = Path.joinpath(self.examples_path, script_name) |
| 19 | runpy.run_path(path_name=str(file_path), run_name="__main__") |