Skip to content

Commit 3bd3f8e

Browse files
committed
Separate the test using protocol.checkSocksIP() and skip it on python3
Closes: #1792
1 parent 06643bb commit 3bd3f8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tests/test_protocol.py

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Tests for common protocol functions
33
"""
44

5+
import sys
56
import unittest
67

78
from pybitmessage import protocol, state
@@ -67,6 +68,10 @@ def test_check_local(self):
6768
self.assertFalse(protocol.checkIPAddress(globalhost, True))
6869
self.assertEqual(protocol.checkIPAddress(globalhost), '8.8.8.8')
6970

71+
@unittest.skipIf(
72+
sys.hexversion >= 0x3000000, 'this is still not working with python3')
73+
def test_check_local_socks(self):
74+
"""The SOCKS part of the local check"""
7075
self.assertTrue(
7176
not protocol.checkSocksIP('127.0.0.1')
7277
or state.socksIP)

0 commit comments

Comments
 (0)