Skip to content

Commit 2079558

Browse files
committed
fixed build issues
1 parent 5c0455b commit 2079558

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sonic-py-common/tests/test_security_cipher.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
from sonic_py_common.security_cipher import security_cipher
1010
from .mock_swsscommon import ConfigDBConnector
1111

12+
# TODO: Remove this if/else block once we no longer support Python 2
13+
if sys.version_info.major == 3:
14+
BUILTINS = "builtins"
15+
else:
16+
BUILTINS = "__builtin__"
17+
1218
EXPECTED_PASSWD = "TEST2"
1319

1420
class TestSecurityCipher(object):

0 commit comments

Comments
 (0)