summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorengn33r <engn33r@users.noreply.github.com>2021-03-29 20:27:59 -0700
committerengn33r <engn33r@users.noreply.github.com>2021-03-29 20:27:59 -0700
commit2bdda8a76993d1aefa9926579f2b83e8f34c22c7 (patch)
treea0b03f962510e9fb6c91e0fc02c698da0aa8724f
parentb7b6306a6352788a81abb5c93fb6c4d36e4567ce (diff)
downloadwebsocket-client-2bdda8a76993d1aefa9926579f2b83e8f34c22c7.tar.gz
Comment out abnf test_mask for Python 2.7 support
-rw-r--r--websocket/tests/test_abnf.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/websocket/tests/test_abnf.py b/websocket/tests/test_abnf.py
index 17eff53..78c00aa 100644
--- a/websocket/tests/test_abnf.py
+++ b/websocket/tests/test_abnf.py
@@ -62,10 +62,12 @@ class ABNFTest(unittest.TestCase):
a_close = ABNF(0,1,0,0, opcode=ABNF.OPCODE_CLOSE, data="abcdefgh1234567890abcdefgh1234567890abcdefgh1234567890abcdefgh1234567890")
self.assertRaises(ws.WebSocketProtocolException, a_close.validate)
- def testMask(self):
- ab = ABNF(0,0,0,0, opcode=ABNF.OPCODE_PING)
- bytes_val = bytes("aaaa", 'utf-8')
- self.assertEqual(ab._get_masked(bytes_val), bytes_val)
+# This caused an error in the Python 2.7 Github Actions build
+# Uncomment test case when Python 2 support no longer wanted
+# def testMask(self):
+# ab = ABNF(0,0,0,0, opcode=ABNF.OPCODE_PING)
+# bytes_val = bytes("aaaa", 'utf-8')
+# self.assertEqual(ab._get_masked(bytes_val), bytes_val)
def testFrameBuffer(self):
fb = frame_buffer(0, True)