diff --git a/tests/nightly/model_backwards_compatibility_check/common.py b/tests/nightly/model_backwards_compatibility_check/common.py index c41b11faf081..8950a9270839 100644 --- a/tests/nightly/model_backwards_compatibility_check/common.py +++ b/tests/nightly/model_backwards_compatibility_check/common.py @@ -29,13 +29,6 @@ import re from mxnet.test_utils import assert_almost_equal -try: - cmp # Python 2 -except NameError: - # See: https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons - def cmp(x, y): # Python 3 - return (x > y) - (x < y) - # Set fixed random seeds. mx.random.seed(7) np.random.seed(7)