-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ptf: update stringify for compatibility with Py3 (#600)
The decode('hex') method [1] has been deprecated and removed in Python 3. Equivalent functionality in Python 3 is provided by int.to_bytes [2]. This patch adds unit tests to verify the functionality of stringify. [1] https://docs.python.org/2.7/library/codecs.html#python-specific-encodings [2] https://docs.python.org/3/library/stdtypes.html#int.to_bytes * proto/ptf: add unit tests for ipv4_to_binary * proto/ptf: add unit tests for mac_to_binary Fixes #599 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
- Loading branch information
Showing
2 changed files
with
119 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters