• xelmirage's avatar
    modify test() to run_test() (#460) · f8b01183
    xelmirage authored
    I'm using pycharm to debug the code on a remote server, the remote debugging seems to be performed by pytest and it pops errors like:
    train_net.py E
    test setup failed
    file /tmp/pycharm_project_269/tools/train_net.py, line 79
      def test(cfg, model, distributed):
    E       fixture 'cfg' not found
    >       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
    >       use 'pytest --fixtures [testpath]' for help on them.
    
    
    it seems the function name ‘test()’ has come conflict with pytest, so it may be better use another name.
    f8b01183
Name
Last commit
Last update
.github/ISSUE_TEMPLATE Loading commit data...
configs Loading commit data...
demo Loading commit data...
docker Loading commit data...
maskrcnn_benchmark Loading commit data...
tests Loading commit data...
tools Loading commit data...
.flake8 Loading commit data...
.gitignore Loading commit data...
ABSTRACTIONS.md Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
INSTALL.md Loading commit data...
LICENSE Loading commit data...
MODEL_ZOO.md Loading commit data...
README.md Loading commit data...
TROUBLESHOOTING.md Loading commit data...
setup.py Loading commit data...