Codebase list rust-serde-xml-rs / 02669c4
Update pretty_assertions to 0.6.1-2: fix tests, relax deps With newer Rust versions, the test suite for pretty_assertions fails due to formatting changes, see [0]. As this has not been fixed in upstream for more than six months, I manually patched the tests. As ansi_term has been updated in the meantime, we also have to relax the ansi_term dependency to work with 0.12. [0] https://github.com/colin-kiegel/rust-pretty-assertions/issues/32 Robin Krahl 4 years ago
5 changed file(s) with 154 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 rust-pretty-assertions (0.6.1-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Package pretty_assertions 0.6.1 from crates.io using debcargo 2.4.2
3 * Relax ansi_term dependency from 0.11 to >= 0.11, < 0.13
4 * Fix tests failures by patching the test files
5
6 -- Robin Krahl <robin.krahl@ireas.org> Fri, 17 Jan 2020 13:07:31 +0000
7
08 rust-pretty-assertions (0.6.1-1) unstable; urgency=medium
19
210 * Package pretty_assertions 0.6.1 from crates.io using debcargo 2.2.10
2424
2525 Files: debian/*
2626 Copyright:
27 2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
28 2019 Robin Krahl <robin.krahl@ireas.org>
27 2019-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
28 2019-2020 Robin Krahl <robin.krahl@ireas.org>
2929 License: MIT or Apache-2.0
3030
3131 License: Apache-2.0
0 Index: pretty-assertions/tests/assert_eq.rs
1 ===================================================================
2 --- pretty-assertions.orig/tests/assert_eq.rs
3 +++ pretty-assertions/tests/assert_eq.rs
4 @@ -12,10 +12,10 @@ extern crate difference;
5 > lorem: "Hello Wrold!",
6 ipsum: 42,
7 dolor: Ok(
8 -< "hey"
9 -> "hey ho!"
10 - )
11 - }
12 +< "hey",
13 +> "hey ho!",
14 + ),
15 + },
16 )
17
18 "#)]
19 @@ -52,10 +52,10 @@ fn assert_eq() {
20 > lorem: "Hello Wrold!",
21 ipsum: 42,
22 dolor: Ok(
23 -< "hey"
24 -> "hey ho!"
25 - )
26 - }
27 +< "hey",
28 +> "hey ho!",
29 + ),
30 + },
31 )
32
33 "#
34 @@ -104,7 +104,7 @@ fn assert_eq_with_comparable_types() {
35 > 84,
36 > 248,
37 > 45,
38 - 64
39 + 64,
40 ]
41
42 "#)]
43 @@ -124,10 +124,10 @@ fn issue12() {
44 > lorem: "Hello Wrold!",
45 ipsum: 42,
46 dolor: Ok(
47 -< "hey"
48 -> "hey ho!"
49 - )
50 - }
51 +< "hey",
52 +> "hey ho!",
53 + ),
54 + },
55 )
56
57 "#)]
58 @@ -164,10 +164,10 @@ fn assert_eq_trailing_comma() {
59 > lorem: "Hello Wrold!",
60 ipsum: 42,
61 dolor: Ok(
62 -< "hey"
63 -> "hey ho!"
64 - )
65 - }
66 +< "hey",
67 +> "hey ho!",
68 + ),
69 + },
70 )
71
72 "#
73 Index: pretty-assertions/tests/assert_ne.rs
74 ===================================================================
75 --- pretty-assertions.orig/tests/assert_ne.rs
76 +++ pretty-assertions/tests/assert_ne.rs
77 @@ -9,9 +9,9 @@ Some(
78 lorem: "Hello World!",
79 ipsum: 42,
80 dolor: Ok(
81 - "hey"
82 - )
83 - }
84 + "hey",
85 + ),
86 + },
87 )
88
89 "#)]
90 @@ -42,9 +42,9 @@ Some(
91 lorem: "Hello World!",
92 ipsum: 42,
93 dolor: Ok(
94 - "hey"
95 - )
96 - }
97 + "hey",
98 + ),
99 + },
100 )
101
102 "#
103 @@ -116,9 +116,9 @@ Some(
104 lorem: "Hello World!",
105 ipsum: 42,
106 dolor: Ok(
107 - "hey"
108 - )
109 - }
110 + "hey",
111 + ),
112 + },
113 )
114
115 "#)]
116 @@ -149,9 +149,9 @@ Some(
117 lorem: "Hello World!",
118 ipsum: 42,
119 dolor: Ok(
120 - "hey"
121 - )
122 - }
123 + "hey",
124 + ),
125 + },
126 )
127
128 "#
0 Index: pretty-assertions/Cargo.toml
1 ===================================================================
2 --- pretty-assertions.orig/Cargo.toml
3 +++ pretty-assertions/Cargo.toml
4 @@ -23,7 +23,7 @@ categories = ["development-tools"]
5 license = "MIT/Apache-2.0"
6 repository = "https://github.com/colin-kiegel/rust-pretty-assertions"
7 [dependencies.ansi_term]
8 -version = "0.11"
9 +version = ">= 0.11, < 0.13"
10
11 [dependencies.difference]
12 version = "2.0.0"
0 fix-tests.diff
1 relax-dep.diff