We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06643bb commit 3bd3f8eCopy full SHA for 3bd3f8e
src/tests/test_protocol.py
@@ -2,6 +2,7 @@
2
Tests for common protocol functions
3
"""
4
5
+import sys
6
import unittest
7
8
from pybitmessage import protocol, state
@@ -67,6 +68,10 @@ def test_check_local(self):
67
68
self.assertFalse(protocol.checkIPAddress(globalhost, True))
69
self.assertEqual(protocol.checkIPAddress(globalhost), '8.8.8.8')
70
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"""
75
self.assertTrue(
76
not protocol.checkSocksIP('127.0.0.1')
77
or state.socksIP)
0 commit comments