Ubuntu Pastebin

Paste from ubuntu at Wed, 8 Nov 2017 22:17:35 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/snapcraft/tests/fake_servers/snapd.py b/snapcraft/tests/fake_servers/snapd.py
index 1c27126..71e849f 100644
--- a/snapcraft/tests/fake_servers/snapd.py
+++ b/snapcraft/tests/fake_servers/snapd.py
@@ -13,12 +13,14 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 import json
-from http.server import BaseHTTPRequestHandler
 from urllib import parse
 
+from snapcraft.tests import fake_servers
+
 
-class FakeSnapdRequestHandler(BaseHTTPRequestHandler):
+class FakeSnapdRequestHandler(fake_servers.BaseHTTPRequestHandler):
 
     snaps_result = []
     snap_details_func = None
Download as text