Skip to content

Commit f770635

Browse files
committed
Separate the test using protocol.checkSocksIP() and skip it on python3
Closes: Bitmessage#1792
1 parent 7ae5dfd commit f770635

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tests/test_protocol.py

Lines changed: 5 additions & 0 deletions
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
@@ -52,6 +53,10 @@ def test_check_local(self):
5253
self.assertFalse(protocol.checkIPAddress(globalhost, True))
5354
self.assertEqual(protocol.checkIPAddress(globalhost), '8.8.8.8')
5455

56+
@unittest.skipIf(
57+
sys.hexversion >= 0x3000000, 'this is still not working with python3')
58+
def test_check_local_socks(self):
59+
"""The SOCKS part of the local check"""
5560
self.assertTrue(
5661
not protocol.checkSocksIP('127.0.0.1')
5762
or state.socksIP)

0 commit comments

Comments
 (0)