[Git][NTPsec/ntpsec][master] Python 3 fix for test error

Ian Bruene gitlab at mg.gitlab.com
Sun Oct 29 19:36:10 UTC 2017


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
8820e175 by Ian Bruene at 2017-10-29T14:35:39-05:00
Python 3 fix for test error

- - - - -


1 changed file:

- tests/pylib/test_agentx.py


Changes:

=====================================
tests/pylib/test_agentx.py
=====================================
--- a/tests/pylib/test_agentx.py
+++ b/tests/pylib/test_agentx.py
@@ -2487,8 +2487,8 @@ class TestNtpclientsNtpsnmpd(unittest.TestCase):
         except x.ParseError as e:
             errored = e
         self.assertEqual(errored.message, "Unknown packet version 2")
-        self.assertEqual(errored.packetData, "blahblah")
-        self.assertEqual(errored.remainingData, "jabber")
+        self.assertEqual(errored.packetData, b"blahblah")
+        self.assertEqual(errored.remainingData, b"jabber")
         # Test unrecognized packet type
         try:
             f(b"\x01\xFF\x10\x00"



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8820e1750d5f3b06ec504c219331da93cd5c83db

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8820e1750d5f3b06ec504c219331da93cd5c83db
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171029/6a704df6/attachment.html>


More information about the vc mailing list