File: fix-test-doc-examples.patch

package info (click to toggle)
python-nixio 1.5.4%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,888 kB
  • sloc: python: 12,527; cpp: 832; makefile: 25
file content (19 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: fix test_doc_examples.py
 The examples_path attribute misses initialisation, causing various test
 failures.
Author: Étienne Mollier <emollier@debian.org>
Forwarded: https://github.com/G-Node/nixpy/pull/538
Last-Update: 2024-02-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/nixio/test/test_doc_examples.py
+++ b/nixio/test/test_doc_examples.py
@@ -16,6 +16,8 @@
 
     examples_path = Path("docs/source/examples")
 
+    examples_path = Path("docs/source/examples")
+
     def run_script(self, script_name):
         file_path = Path.joinpath(self.examples_path, script_name)
         runpy.run_path(path_name=str(file_path), run_name="__main__")