File: drop-standalone-mock.patch

package info (click to toggle)
python-firehose 0.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,208 kB
  • sloc: python: 2,587; xml: 1,388; makefile: 150; ansic: 34
file content (25 lines) | stat: -rw-r--r-- 728 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
Author: Alexandre Detiste <tchet@debian.org>
Subject: drop usage of old standalone "mock" library
Forwarded: https://github.com/fedora-static-analysis/firehose/pull/46

--- a/tests/parsers/test_frama_c_parser.py
+++ b/tests/parsers/test_frama_c_parser.py
@@ -1,6 +1,6 @@
 import unittest
 
-import mock
+from unittest import mock
 
 from firehose.parsers import frama_c
 from firehose.model import Issue, Location, File, Point, \
--- a/tests/parsers/test_gcc_parser.py
+++ b/tests/parsers/test_gcc_parser.py
@@ -17,7 +17,7 @@
 
 import unittest
 
-import mock
+from unittest import mock
 
 from firehose.parsers import gcc # import parse_warning, parse_file
 from firehose.model import Analysis, Issue, Location, File, Point, \