Skip to content
Permalink
Browse files

remove one print

  • Loading branch information...
sdpython committed Dec 4, 2017
1 parent 047d693 commit 4c71ec95e5011bbb5e23628fd1290baffc190f88
Showing with 9 additions and 11 deletions.
  1. +9 −9 _unittests/ut_jenkinshelper/test_yaml.py
  2. +0 −2 _unittests/ut_sphinxext/test_cmdref_extension.py
@@ -30,7 +30,7 @@

class TestYaml(unittest.TestCase):

def test_jenkins_job_verif(self):
def _test_jenkins_job_verif(self):
fLOG(
__file__,
self._testMethodName,
@@ -62,20 +62,20 @@ def test_evaluate_condition(self):
self._testMethodName,
OutputPrint=__name__ == "__main__")

r = evaluate_condition('[ ${PYTHON} == "C:\\Python35_x64\\pythonw.exe" ]',
dict(python="C:\\Python35_x64\\pythonw.exe"))
r = evaluate_condition('[ ${PYTHON} == "C:\\\\Python35_x64\\\\pythonw.exe" ]',
dict(python="C:\\\\Python35_x64\\\\pythonw.exe"))
self.assertTrue(r)
self.assertTrue(isinstance(r, bool))
r = evaluate_condition('${PYTHON} == "C:\\Python35_x64\\pythonw.exe"',
dict(python="C:\\Python35_x64\\pythonw.exe"))
r = evaluate_condition('${PYTHON} == "C:\\\\Python35_x64\\\\pythonw.exe"',
dict(python="C:\\\\Python35_x64\\\\pythonw.exe"))
self.assertTrue(r)
self.assertTrue(isinstance(r, bool))
r = evaluate_condition('${PYTHON} != "C:\\Python35_x64\\pythonw.exe"',
dict(python="C:\\Python35_x64\\pythonw.exe"))
r = evaluate_condition('${PYTHON} != "C:\\\\Python35_x64\\\\pythonw.exe"',
dict(python="C:\\\\Python35_x64\\\\pythonw.exe"))
self.assertTrue(not r)
self.assertTrue(isinstance(r, bool))
r = evaluate_condition('[${PYTHON} != "C:\\Python35_x64\\pythonw.exe", ${PYTHON} == "C:\\Python35_x64\\pythonw.exe"]',
dict(python="C:\\Python35_x64\\pythonw.exe"))
r = evaluate_condition('[${PYTHON} != "C:\\\\Python35_x64\\\\pythonw.exe", ${PYTHON} == "C:\\\\Python35_x64\\\\pythonw.exe"]',
dict(python="C:\\\\Python35_x64\\\\pythonw.exe"))
self.assertTrue(not r)
self.assertTrue(isinstance(r, bool))

@@ -252,8 +252,6 @@ def test_cmdref_quote(self):
if t1 in html:
raise Exception(html)

print(html)


if __name__ == "__main__":
unittest.main()

0 comments on commit 4c71ec9

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