Skip to content
Permalink
Browse files

adjust a unit test for python 3.5

  • Loading branch information...
sdpython committed Nov 4, 2015
1 parent 806c8d8 commit 91d5382de6bc626fe31ed558768823efd7feb73b
Showing with 12 additions and 4 deletions.
  1. +12 −4 _unittests/ut_jenkinshelper/test_jenkinsext.py
@@ -263,10 +263,18 @@ def test_jenkins_ext_setup_server(self):
raise Exception(conf)

if "pymyinstall" in job and "[27]" in job:
if "%jenkinspythonpip% install --no-cache-dir --index http://localhost:8067/simple/ pyquickhelper" not in conf:
raise Exception(conf)
if "%jenkinspythonpip% install qgrid" not in conf:
raise Exception(conf)
if sys.version_info[:2] == (3, 5):
s1 = '''%jenkinspythonexe% -u -c "import pip;pip.main('install --no-cache-dir --index http://localhost:8067/simple/ pyquickhelper'.split())"'''
s2 = '''%jenkinspythonexe% -u -c "import pip;pip.main('install qgrid'.split())"'''
if s1 not in conf:
raise Exception(conf)
if s2 not in conf:
raise Exception(conf)
else:
if "%jenkinspythonpip% install --no-cache-dir --index http://localhost:8067/simple/ pyquickhelper" not in conf:
raise Exception(conf)
if "%jenkinspythonpip% install qgrid" not in conf:
raise Exception(conf)

assert i > 0

0 comments on commit 91d5382

Please sign in to comment.
You can’t perform that action at this time.