io.StringIO object in TestPwb.test_one_similar_script is empty in Python 2 and 3.
fasttests always passes. Also in Travis.
https://ci.appveyor.com/project/ladsgroup/pywikibot-g4xqx/build/job/3e3efiqk6k0l5627
C:\pwb\GIT\core>py -3 pwb.py pwb_tests -v tests: max_retries reduced from 15 to 1 test_env (__main__.TestPwb) ... ok test_locals (__main__.TestPwb) ... ok test_one_similar_script (__main__.TestPwb) Test shell.py script call which gives one similar result. ... ok test_script_found (__main__.TestPwb) Test pwb.py script call which is found. ... ok test_script_not_found (__main__.TestPwb) Test pwbot.py script call which is not found. ... ok test_similar_scripts_found (__main__.TestPwb) Test script call which gives multiple similar results. ... ok test_unicode (__main__.TestPwb) Test printing unicode in pywikibot. ... ok ---------------------------------------------------------------------- Ran 7 tests in 13.475s OK C:\pwb\GIT\core>py -2 pwb.py pwb_tests -v tests: max_retries reduced from 15 to 1 test_env (__main__.TestPwb) ... ok test_locals (__main__.TestPwb) ... ok test_one_similar_script (__main__.TestPwb) Test shell.py script call which gives one similar result. ... FAIL test_script_found (__main__.TestPwb) Test pwb.py script call which is found. ... ok test_script_not_found (__main__.TestPwb) Test pwbot.py script call which is not found. ... ok test_similar_scripts_found (__main__.TestPwb) Test script call which gives multiple similar results. ... ok test_unicode (__main__.TestPwb) Test printing unicode in pywikibot. ... FAIL ====================================================================== FAIL: test_one_similar_script (__main__.TestPwb) Test shell.py script call which gives one similar result. ---------------------------------------------------------------------- Traceback (most recent call last): File ".\tests\pwb_tests.py", line 102, in test_one_similar_script self.assertEqual(stderr.readline().strip(), result[0]) AssertionError: u'' != u'ERROR: hello.py not found! Misspelling?' + ERROR: hello.py not found! Misspelling? ====================================================================== FAIL: test_unicode (__main__.TestPwb) Test printing unicode in pywikibot. ---------------------------------------------------------------------- Traceback (most recent call last): File ".\tests\pwb_tests.py", line 75, in test_unicode self.assertEqual('Häuser', direct['stderr'].strip()) AssertionError: u'H\xe4user' != u'H\u251c\xf1user' - H\xe4user ? ^ + H\u251c\xf1user ? ^^ ---------------------------------------------------------------------- Ran 7 tests in 11.172s FAILED (failures=2) C:\pwb\GIT\core>py -2 pwb.py pwb_tests -v TestPwb.test_one_similar_script tests: max_retries reduced from 15 to 1 test_one_similar_script (__main__.TestPwb) Test shell.py script call which gives one similar result. ... FAIL ====================================================================== FAIL: test_one_similar_script (__main__.TestPwb) Test shell.py script call which gives one similar result. ---------------------------------------------------------------------- Traceback (most recent call last): File ".\tests\pwb_tests.py", line 102, in test_one_similar_script self.assertEqual(stderr.readline().strip(), result[0]) AssertionError: u'' != u'ERROR: hello.py not found! Misspelling?' + ERROR: hello.py not found! Misspelling? ---------------------------------------------------------------------- Ran 1 test in 6.020s FAILED (failures=1) C:\pwb\GIT\core>py -3 pwb.py pwb_tests -v TestPwb.test_one_similar_script tests: max_retries reduced from 15 to 1 test_one_similar_script (__main__.TestPwb) Test shell.py script call which gives one similar result. ... ====================================================================== FAIL: test_one_similar_script (__main__.TestPwb) (line=0) Test shell.py script call which gives one similar result. ---------------------------------------------------------------------- Traceback (most recent call last): File ".\tests\pwb_tests.py", line 102, in test_one_similar_script self.assertEqual(stderr.readline().strip(), result[0]) AssertionError: '' != 'ERROR: hello.py not found! Misspelling?' + ERROR: hello.py not found! Misspelling? ====================================================================== FAIL: test_one_similar_script (__main__.TestPwb) (line=1) Test shell.py script call which gives one similar result. ---------------------------------------------------------------------- Traceback (most recent call last): File ".\tests\pwb_tests.py", line 107, in test_one_similar_script msg='"{}" does not start with "{}"'.format(text, result[1])) AssertionError: False is not true : "" does not start with "NOTE: Starting the most similar script shell.py" ====================================================================== FAIL: test_one_similar_script (__main__.TestPwb) (line=2) Test shell.py script call which gives one similar result. ---------------------------------------------------------------------- Traceback (most recent call last): File ".\tests\pwb_tests.py", line 109, in test_one_similar_script self.assertEqual(stderr.readline().strip(), result[2]) AssertionError: '' != 'in 5.0 seconds; type CTRL-C to stop.' + in 5.0 seconds; type CTRL-C to stop. ---------------------------------------------------------------------- Ran 1 test in 6.016s FAILED (failures=3) C:\pwb\GIT\core>py -3 pwb.py pwb_tests -v TestPwb.test_one_similar_script tests: max_retries reduced from 15 to 1 test_one_similar_script (__main__.TestPwb) Test shell.py script call which gives one similar result. ... ok ---------------------------------------------------------------------- Ran 1 test in 6.022s OK