File: fix-path-to-links.dump.patch

package info (click to toggle)
pyroute2 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,704 kB
  • sloc: python: 50,245; makefile: 277; javascript: 183; ansic: 81; sh: 39; awk: 17
file content (16 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix path to links.dump.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2022-08-31

--- pyroute2-0.7.2.orig/tests/test_unit/test_iproute_match/test_match.py
+++ pyroute2-0.7.2/tests/test_unit/test_iproute_match/test_match.py
@@ -7,7 +7,7 @@ from pyroute2.netlink.rtnl.ifinfmsg impo
 from pyroute2.requests.link import LinkFieldFilter, LinkIPRouteFilter
 from pyroute2.requests.main import RequestProcessor
 
-with open('test_unit/test_iproute_match/links.dump', 'r') as f:
+with open('tests/test_unit/test_iproute_match/links.dump', 'r') as f:
     ifinfmsg_sample = [ifinfmsg().load(x) for x in json.load(f)]
 for msg in ifinfmsg_sample:
     msg.reset()