• 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
train_net.py 5.39 KB