File: fix-unittest.patch

package info (click to toggle)
pymodbus 3.8.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,720 kB
  • sloc: python: 14,867; makefile: 27; sh: 17
file content (18 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: fix unittest
Author: Alexandre Detiste <tchet@debian.org>
Origin: debian
Forwarded: no, ugly
Last-Update: 2024-05-24
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/examples/helper.py
+++ b/examples/helper.py
@@ -128,6 +128,8 @@
         path = "../examples"
     elif cwd == "pymodbus":
         path = "examples"
+    elif cwd != "path":
+        path= "examples"
     else:
         raise RuntimeError(f"**Error** Cannot find certificate path={cwd}")
     return f"{path}/certificates/pymodbus.{suffix}"