Created
May 13, 2013 18:16
-
-
Save agustinhenze/5570270 to your computer and use it in GitHub Desktop.
doit-0.21 running test cases in python3.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tin@bichito:~/Projects/debian/doit.git$ mkdir test_cases_python3 | |
tin@bichito:~/Projects/debian/doit.git$ cd test_cases_python3/ | |
tin@bichito:~/Projects/debian/doit.git/test_cases_python3$ tar xvf ../doit-0.21.0.tar.gz | |
doit-0.21.0/ | |
doit-0.21.0/CHANGES | |
doit-0.21.0/pylintrc | |
doit-0.21.0/PKG-INFO | |
doit-0.21.0/.travis.yml | |
doit-0.21.0/doc/ | |
doit-0.21.0/doc/install.rst | |
doit-0.21.0/doc/extending.rst | |
doit-0.21.0/doc/faq.rst | |
doit-0.21.0/doc/cmd_run.rst | |
doit-0.21.0/doc/index.rst | |
doit-0.21.0/doc/Makefile | |
doit-0.21.0/doc/standalone.rst | |
doit-0.21.0/doc/conf.py | |
doit-0.21.0/doc/make.bat | |
doit-0.21.0/doc/epydoc.config | |
doit-0.21.0/doc/dependencies.rst | |
doit-0.21.0/doc/svg/ | |
doit-0.21.0/doc/svg/doit-text.svg | |
doit-0.21.0/doc/svg/doit-text-full.svg | |
doit-0.21.0/doc/svg/doit.svg | |
doit-0.21.0/doc/svg/doit-text-sq.svg | |
doit-0.21.0/doc/presentation.rst | |
doit-0.21.0/doc/contents.rst | |
doit-0.21.0/doc/cmd_other.rst | |
doit-0.21.0/doc/tutorial/ | |
doit-0.21.0/doc/tutorial/run_once.py | |
doit-0.21.0/doc/tutorial/tutorial_02.py | |
doit-0.21.0/doc/tutorial/folder.py | |
doit-0.21.0/doc/tutorial/getargs_dict.py | |
doit-0.21.0/doc/tutorial/uptodate_callable.py | |
doit-0.21.0/doc/tutorial/clean_mix.py | |
doit-0.21.0/doc/tutorial/defs.h | |
doit-0.21.0/doc/tutorial/main.c | |
doit-0.21.0/doc/tutorial/group.py | |
doit-0.21.0/doc/tutorial/check_timestamp_unchanged.py | |
doit-0.21.0/doc/tutorial/hello.py | |
doit-0.21.0/doc/tutorial/cproject.py | |
doit-0.21.0/doc/tutorial/kbd.c | |
doit-0.21.0/doc/tutorial/sample.py | |
doit-0.21.0/doc/tutorial/dodo.py | |
doit-0.21.0/doc/tutorial/taskresult.py | |
doit-0.21.0/doc/tutorial/task_name.py | |
doit-0.21.0/doc/tutorial/tsetup.py | |
doit-0.21.0/doc/tutorial/cmd_from_callable.py | |
doit-0.21.0/doc/tutorial/download.py | |
doit-0.21.0/doc/tutorial/custom_cmd.py | |
doit-0.21.0/doc/tutorial/my_module_with_tasks.py | |
doit-0.21.0/doc/tutorial/parameters.py | |
doit-0.21.0/doc/tutorial/titlewithactions.py | |
doit-0.21.0/doc/tutorial/compile.py | |
doit-0.21.0/doc/tutorial/settrace.py | |
doit-0.21.0/doc/tutorial/my_dodo.py | |
doit-0.21.0/doc/tutorial/save_out.py | |
doit-0.21.0/doc/tutorial/title.py | |
doit-0.21.0/doc/tutorial/tar.py | |
doit-0.21.0/doc/tutorial/module_loader.py | |
doit-0.21.0/doc/tutorial/meta.py | |
doit-0.21.0/doc/tutorial/get_var.py | |
doit-0.21.0/doc/tutorial/timeout.py | |
doit-0.21.0/doc/tutorial/config_params.py | |
doit-0.21.0/doc/tutorial/calc_dep.py | |
doit-0.21.0/doc/tutorial/custom_loader.py | |
doit-0.21.0/doc/tutorial/cmd_actions.py | |
doit-0.21.0/doc/tutorial/subtasks.py | |
doit-0.21.0/doc/tutorial/interactiveaction.py | |
doit-0.21.0/doc/tutorial/command.c | |
doit-0.21.0/doc/tutorial/doit_config.py | |
doit-0.21.0/doc/tutorial/custom_reporter.py | |
doit-0.21.0/doc/tutorial/command.h | |
doit-0.21.0/doc/tutorial/custom_task_def.py | |
doit-0.21.0/doc/tutorial/verbosity.py | |
doit-0.21.0/doc/tutorial/getargs_group.py | |
doit-0.21.0/doc/tutorial/taskorder.py | |
doit-0.21.0/doc/tutorial/getargs.py | |
doit-0.21.0/doc/tutorial/my_tasks.py | |
doit-0.21.0/doc/tutorial/selecttasks.py | |
doit-0.21.0/doc/tutorial/task_reusable.py | |
doit-0.21.0/doc/tutorial/checker.py | |
doit-0.21.0/doc/uptodate.rst | |
doit-0.21.0/doc/changes.rst | |
doit-0.21.0/doc/blog.txt | |
doit-0.21.0/doc/related.rst | |
doit-0.21.0/doc/_static/ | |
doit-0.21.0/doc/_static/doit.png | |
doit-0.21.0/doc/_static/python-powered-w-100x40.png | |
doit-0.21.0/doc/_static/doit-text-160x60.png | |
doit-0.21.0/doc/_static/favico.ico | |
doit-0.21.0/doc/tasks.rst | |
doit-0.21.0/doc/_templates/ | |
doit-0.21.0/doc/_templates/layout.html | |
doit-0.21.0/doc/tools.rst | |
doit-0.21.0/distribute_setup.py | |
doit-0.21.0/dev_requirements.txt | |
doit-0.21.0/dodo.py | |
doit-0.21.0/bin/ | |
doit-0.21.0/bin/doit | |
doit-0.21.0/bin/doit.bat | |
doit-0.21.0/genstandalone.py | |
doit-0.21.0/setup.py | |
doit-0.21.0/runtests.py | |
doit-0.21.0/LICENSE | |
doit-0.21.0/revision.txt | |
doit-0.21.0/.gitignore | |
doit-0.21.0/bash_completion_doit | |
doit-0.21.0/doit/ | |
doit-0.21.0/doit/compat.py | |
doit-0.21.0/doit/__main__.py | |
doit-0.21.0/doit/cmd_auto.py | |
doit-0.21.0/doit/cmd_forget.py | |
doit-0.21.0/doit/task.py | |
doit-0.21.0/doit/action.py | |
doit-0.21.0/doit/control.py | |
doit-0.21.0/doit/runner.py | |
doit-0.21.0/doit/doit_cmd.py | |
doit-0.21.0/doit/cmdparse.py | |
doit-0.21.0/doit/loader.py | |
doit-0.21.0/doit/cmd_clean.py | |
doit-0.21.0/doit/cmd_run.py | |
doit-0.21.0/doit/reporter.py | |
doit-0.21.0/doit/filewatch.py | |
doit-0.21.0/doit/cmd_list.py | |
doit-0.21.0/doit/cmd_dumpdb.py | |
doit-0.21.0/doit/tools.py | |
doit-0.21.0/doit/cmd_help.py | |
doit-0.21.0/doit/exceptions.py | |
doit-0.21.0/doit/__init__.py | |
doit-0.21.0/doit/cmd_base.py | |
doit-0.21.0/doit/dependency.py | |
doit-0.21.0/doit/cmd_strace.py | |
doit-0.21.0/doit/cmd_ignore.py | |
doit-0.21.0/TODO.txt | |
doit-0.21.0/tests/ | |
doit-0.21.0/tests/conftest.py | |
doit-0.21.0/tests/test_cmdparse.py | |
doit-0.21.0/tests/test_doit_cmd.py | |
doit-0.21.0/tests/test_cmd_dumpdb.py | |
doit-0.21.0/tests/test_dependency.py | |
doit-0.21.0/tests/loader_sample.py | |
doit-0.21.0/tests/test_action.py | |
doit-0.21.0/tests/sample_md5.txt | |
doit-0.21.0/tests/sample_process.py | |
doit-0.21.0/tests/test_loader.py | |
doit-0.21.0/tests/test_cmd_ignore.py | |
doit-0.21.0/tests/test_cmd_list.py | |
doit-0.21.0/tests/test_reporter.py | |
doit-0.21.0/tests/myecho.py | |
doit-0.21.0/tests/test_cmd_base.py | |
doit-0.21.0/tests/test_cmd_forget.py | |
doit-0.21.0/tests/test_cmd_run.py | |
doit-0.21.0/tests/test_filewatch.py | |
doit-0.21.0/tests/__init__.py | |
doit-0.21.0/tests/test_runner.py | |
doit-0.21.0/tests/test_task.py | |
doit-0.21.0/tests/test___main__.py | |
doit-0.21.0/tests/test_cmd_clean.py | |
doit-0.21.0/tests/test_cmd_strace.py | |
doit-0.21.0/tests/data/ | |
doit-0.21.0/tests/data/README | |
doit-0.21.0/tests/test_tools.py | |
doit-0.21.0/tests/test_control.py | |
doit-0.21.0/tests/test_cmd_help.py | |
doit-0.21.0/tests/test_cmd_auto.py | |
doit-0.21.0/tests/test_exceptions.py | |
doit-0.21.0/README | |
doit-0.21.0/AUTHORS | |
tin@bichito:~/Projects/debian/doit.git/test_cases_python3$ ls | |
doit-0.21.0 | |
tin@bichito:~/Projects/debian/doit.git/test_cases_python3$ cd doit-0.21.0/ | |
tin@bichito:~/Projects/debian/doit.git/test_cases_python3/doit-0.21.0$ ls | |
AUTHORS bin dev_requirements.txt doc doit LICENSE pylintrc revision.txt setup.py TODO.txt | |
bash_completion_doit CHANGES distribute_setup.py dodo.py genstandalone.py PKG-INFO README runtests.py tests | |
tin@bichito:~/Projects/debian/doit.git/test_cases_python3/doit-0.21.0$ python3.3 setup.py test | |
running test | |
============================================================= test session starts ============================================================= | |
platform linux -- Python 3.3.1 -- pytest-2.3.1.dev2 | |
collected 536 items | |
tests/test___main__.py . | |
tests/test_action.py ..........F..........................F........................... | |
tests/test_cmd_auto.py ..... | |
tests/test_cmd_base.py ........... | |
tests/test_cmd_clean.py ......... | |
tests/test_cmd_dumpdb.py s | |
tests/test_cmd_forget.py ..... | |
tests/test_cmd_help.py ...... | |
tests/test_cmd_ignore.py ..... | |
tests/test_cmd_list.py ........... | |
tests/test_cmd_run.py ............ | |
tests/test_cmd_strace.py ..... | |
tests/test_cmdparse.py .................... | |
tests/test_control.py ............................................ | |
tests/test_dependency.py ..............s..................................................................................................... | |
tests/test_doit_cmd.py ......... | |
tests/test_exceptions.py ..... | |
tests/test_filewatch.py .... | |
tests/test_loader.py ............................F..... | |
tests/test_reporter.py .................... | |
tests/test_runner.py .....................................................F.......... | |
tests/test_task.py .......................................................... | |
tests/test_tools.py .......................... | |
================================================================== FAILURES =================================================================== | |
____________________________________________________ TestCmdVerbosity.test_noCaptureStderr ____________________________________________________ | |
self = <tests.test_action.TestCmdVerbosity object at 0xf68e51ac>, tmpfile = <_io.TextIOWrapper name=9 mode='w+' encoding='UTF-8'> | |
def test_noCaptureStderr(self, tmpfile): | |
my_action = action.CmdAction("%s please fail" % PROGRAM) | |
action_result = my_action.execute(err=tmpfile) | |
> assert isinstance(action_result, TaskFailed) | |
E assert isinstance(None, TaskFailed) | |
tests/test_action.py:102: AssertionError | |
__________________________________________________________ TestPythonAction.test_str __________________________________________________________ | |
self = <tests.test_action.TestPythonAction object at 0xf6792cac> | |
def test_str(self): | |
def str_sample(): return True | |
my_action = action.PythonAction(str_sample) | |
> assert "Python: function str_sample" == str(my_action), "'%s'"%str(my_action) | |
E AssertionError: 'Python: function TestPythonAction.test_str.<locals>.str_sample' | |
tests/test_action.py:329: AssertionError | |
______________________________________________ TestGenerateTasksGenerator.testGeneratorBasename _______________________________________________ | |
self = <tests.test_loader.TestGenerateTasksGenerator object at 0xf4bd196c> | |
def testGeneratorBasename(self): | |
def f_xpto(): | |
for i in range(3): | |
yield {'basename':str(i), 'actions' :["xpto"]} | |
tasks = generate_tasks("xpto", f_xpto()) | |
assert isinstance(tasks[0], Task) | |
assert 3 == len(tasks) | |
> assert "0" == tasks[1].name | |
E assert '0' == '1' | |
E - 0 | |
E + 1 | |
tests/test_loader.py:227: AssertionError | |
______________________________________________________ TestMReporter.testReporterMethod _______________________________________________________ | |
self = <tests.test_runner.TestMReporter object at 0xf5f6624c>, reporter = <tests.test_runner.FakeReporter object at 0xf5f66aac> | |
def testReporterMethod(self, reporter): | |
fake_runner = self.MyRunner() | |
mp_reporter = runner.MReporter(fake_runner, reporter) | |
my_task = Task("task x", []) | |
mp_reporter.add_success(my_task) | |
> got = fake_runner.result_q.get(True, 1) | |
tests/test_runner.py:508: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <multiprocessing.queues.Queue object at 0xf5f6678c>, block = True, timeout = 0.9999830722808838 | |
def get(self, block=True, timeout=None): | |
if block and timeout is None: | |
self._rlock.acquire() | |
try: | |
res = self._recv() | |
self._sem.release() | |
return res | |
finally: | |
self._rlock.release() | |
else: | |
if block: | |
deadline = time.time() + timeout | |
if not self._rlock.acquire(block, timeout): | |
raise Empty | |
try: | |
if block: | |
timeout = deadline - time.time() | |
if timeout < 0 or not self._poll(timeout): | |
> raise Empty | |
E queue.Empty | |
/usr/lib/python3.3/multiprocessing/queues.py:109: Empty | |
============================================== 4 failed, 530 passed, 2 skipped in 29.70 seconds =============================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In python 3.2 it works.
tin@bichito:~/Projects/debian/doit.git/test_cases_python3/doit-0.21.0$ python3.2 setup.py test
running test
============================================================= test session starts =============================================================
platform linux2 -- Python 3.2.4 -- pytest-2.3.1.dev2
collected 536 items
tests/test___main__.py .
tests/test_action.py .................................................................
tests/test_cmd_auto.py .....
tests/test_cmd_base.py ...........
tests/test_cmd_clean.py .........
tests/test_cmd_dumpdb.py s
tests/test_cmd_forget.py .....
tests/test_cmd_help.py ......
tests/test_cmd_ignore.py .....
tests/test_cmd_list.py ...........
tests/test_cmd_run.py ............
tests/test_cmd_strace.py .....
tests/test_cmdparse.py ....................
tests/test_control.py ............................................
tests/test_dependency.py ..............s.....................................................................................................
tests/test_doit_cmd.py .........
tests/test_exceptions.py .....
tests/test_filewatch.py ....
tests/test_loader.py ..................................
tests/test_reporter.py ....................
tests/test_runner.py ................................................................
tests/test_task.py ..........................................................
tests/test_tools.py ..........................
=================================================== 534 passed, 2 skipped in 41.26 seconds ====================================================