File: disable-tests-requiring-missing-module.patch

package info (click to toggle)
rust-rspolib 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 648 kB
  • sloc: makefile: 2
file content (39 lines) | stat: -rw-r--r-- 763 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
27
28
29
30
31
32
33
34
35
36
37
38
39
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -22,7 +22,7 @@
 //!
 //! ## Read a MO file (IOError)
 //!
-//! ```rust
+//! ```ignore
 //! use rspolib::{mofile, MOFile, errors::IOError, MAGIC};
 //! use rspolib_testing::create_binary_content;
 //!
@@ -77,7 +77,7 @@
 ///
 /// ## Unsupported MO revision number
 ///
-/// ```rust
+/// ```ignore
 /// use rspolib::{mofile, errors::IOError, MAGIC};
 /// use rspolib_testing::create_binary_content;
 ///
@@ -93,7 +93,7 @@
 ///
 /// ## Incorrect magic number
 ///
-/// ```
+/// ```ignore
 /// use rspolib::{mofile, errors::IOError};
 /// use rspolib_testing::create_binary_content;
 ///
--- a/src/moparser.rs
+++ b/src/moparser.rs
@@ -324,6 +324,7 @@
     }
 }
 
+#[cfg(any())]
 #[cfg(test)]
 mod tests {
     use super::*;