question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

strange tests: Ran 0 tests in 0.000s

See original GitHub issue

I’m confused about output message about ran 0 tests. Is there something wrong with output logs?

yuanshuai@firefly:~/code/tvm/tests/python/unittest$ python -m unittest test_runtime_rpc
Loading runtime library /home/yuanshuai/code/tvm/lib/libtvm_runtime.so... exec only

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
yuanshuai@firefly:~/code/tvm/tests/python/unittest$ python -m unittest test_runtime_ndarray
Loading runtime library /home/yuanshuai/code/tvm/lib/libtvm_runtime.so... exec only
[12:50:13] src/runtime/opencl/opencl_device_api.cc:194: Initialize OpenCL platform 'ARM Platform'
[12:50:13] src/runtime/opencl/opencl_device_api.cc:214: opencl(0)='Mali-T860' cl_device_id=0x7f84d53dd8
('Testing using contexts:', [cpu(0), opencl(0)])

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
yuanshuai@firefly:~/code/tvm/tests/python/unittest$ python -m unittest test_runtime_
test_runtime_extension.py     test_runtime_ndarray.py       test_runtime_packed_func.py   test_runtime_rpc.py           
test_runtime_extension.pyc    test_runtime_ndarray.pyc      test_runtime_packed_func.pyc  test_runtime_rpc.pyc          
yuanshuai@firefly:~/code/tvm/tests/python/unittest$ python -m unittest test_runtime_extension
Loading runtime library /home/yuanshuai/code/tvm/lib/libtvm_runtime.so... exec only

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
yuanshuai@firefly:~/code/tvm/tests/python/unittest$ python -m unittest test_runtime_packed_func
Loading runtime library /home/yuanshuai/code/tvm/lib/libtvm_runtime.so... exec only

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tqchencommented, Sep 8, 2017

specifically, do python -m nose

0reactions
tqchencommented, Sep 9, 2017

because most of the testcases relies on compiler stack

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python unittest - Ran 0 tests in 0.000s - Stack Overflow
I had a similar problem. My root cause was that I had placed the execution block for unittest.main inside the Test class. This...
Read more >
Ran 0 tests in 0.000s · Issue #433 · apache/tvm - GitHub
I'm confused about output message about ran 0 tests. Is there something wrong with output logs?
Read more >
Ran 0 tests in 0.000s - unittest - Python Forum
read_csv(...). I tried to set up a unittest file in the tests folder. The file test_data_reader.py contains the following code: ...
Read more >
Python unittest - Ran 0 tests in 0.000s - Stack Overflow
So I want to do this code Kata for practice. I want to implement the kata with tdd in separate files: The algorithm:...
Read more >
EX46: nosetests ran 0 tests or ran 1 tests with Error - Python
I ran nosetests but it ran 0 test, that means 0 test was found be nose ... when you run nosetest the result...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found