diff options
author | Imcom Jin <jinyu.bjut@gmail.com> | 2020-08-31 17:58:01 +0800 |
---|---|---|
committer | Imcom Jin <jinyu.bjut@gmail.com> | 2020-08-31 17:58:01 +0800 |
commit | af37271526725a3f1c4b89ab2c1a1f4e9d4f27c2 (patch) | |
tree | a42f8775eaf99c4eed8e45705289f2a0337a318a /test/scenario_test/route_server_test.py | |
parent | a4d5d004cc3d97c90de0c2d91f2312525e055d68 (diff) |
added `.env` file for vscode to find test/lib module
replace `is not` exp in *_test.py files to suppress python syntax warning with py3
Diffstat (limited to 'test/scenario_test/route_server_test.py')
-rw-r--r-- | test/scenario_test/route_server_test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/scenario_test/route_server_test.py b/test/scenario_test/route_server_test.py index 4f89de8c..a12c7aeb 100644 --- a/test/scenario_test/route_server_test.py +++ b/test/scenario_test/route_server_test.py @@ -14,7 +14,6 @@ # limitations under the License. - import sys import time import unittest @@ -250,7 +249,7 @@ class GoBGPTestBase(unittest.TestCase): if __name__ == '__main__': output = local("which docker 2>&1 > /dev/null ; echo $?", capture=True) - if int(output) is not 0: + if int(output) != 0: print("docker not found") sys.exit(1) |