Closed cathywu closed 7 years ago
This seems to run nosetests within the conda env (as per http://stackoverflow.com/a/864967):
/Users/cathywu/anaconda/envs/rllabcathywu/bin/python /usr/local/bin/nosetests tests/test_baselines.py
New error:
======================================================================
ERROR: tests.test_baselines.test_baseline
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
TypeError: test_baseline() missing 1 required positional argument: 'baseline_cls'
======================================================================
ERROR: tests.test_baselines.test_action_dependent_baseline
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cathywu/anaconda/envs/rllabcathywu/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
TypeError: test_action_dependent_baseline() missing 1 required positional argument: 'baseline_cls'
----------------------------------------------------------------------
Ran 2 tests in 0.004s
FAILED (errors=2)
Gives the same error, but shorter command:
/Users/cathywu/anaconda/envs/rllabcathywu/bin/nosetests tests/test_baselines.py
Oops, the tests are using nose2, not nosetests:
/Users/cathywu/anaconda/envs/rllabcathywu/bin/nose2
/Users/cathywu/anaconda/envs/rllabcathywu/bin/nose2 --coverage=tests/test_baselines.py
Actually these work fine too:
nose2
nose2 tests.test_baselines
nose2 tests.test_baselines_action
Issue: nose2 installed via pip doesn't seem to run within the virtualenv.
Tests break on imports:
But the following works: