File: test_pretty_print-remove-a-pathname-normalization-st.patch

package info (click to toggle)
openscad 2015.03-2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 30,804 kB
  • ctags: 5,692
  • sloc: cpp: 39,386; sh: 3,856; ansic: 3,674; python: 1,393; yacc: 496; lex: 272; lisp: 159; makefile: 67; xml: 60
file content (26 lines) | stat: -rw-r--r-- 959 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: chrysn <chrysn@fsfe.org>
Date: Thu, 6 Mar 2014 23:12:06 +0100
Subject: test_pretty_print: remove a pathname normalization step

with absolute paths replaced by relative ones in debian (see
debian/rules), what's done in test_pretty_print.py by replacing the
build dir with nothing causes all '.' characters to be removed again.

for a cleaner solution, absolute path removal should be upstremed.
---
 tests/test_pretty_print.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index 27797a8..fc7b408 100644
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -199,7 +199,7 @@ def load_makefiles(builddir):
     files = [file for file in files if 'esting' not in file and 'emporary' not in file]
     result = {}
     for fname in files:
-        result[fname.replace(builddir, '')] = tryread(fname)
+        result[fname] = tryread(fname)
     return result