Closed jaraco closed 8 years ago
oh dear, I think I have to back pedal and cancel.
/dev-python/irc $ ebuild irc-8.5.ebuild clean test
========================================>>> Source compiled.
* pypy2_0: running distutils-r1_run_phase python_test
* python3_2: running distutils-r1_run_phase python_test
* python3_3: running distutils-r1_run_phase python_test
* python2_6: running distutils-r1_run_phase python_test
* python2_7: running distutils-r1_run_phase python_test
...........................................................
----------------------------------------------------------------------
Ran 19 tests in 3.022s
OK
.........
----------------------------------------------------------------------
Ran 19 tests in 3.026s
OK
.........
----------------------------------------------------------------------
Ran 19 tests in 3.024s
OK
.........
----------------------------------------------------------------------
Ran 19 tests in 3.023s
OK
.........
----------------------------------------------------------------------
Ran 19 tests in 3.044s
OK
```.
Running the ebuild with
python_test() {
nosetests irc/tests || die "Tests failed under ${EPYTHON}"
}
and it passes. I shoulf have tried that first this time, but it ought pass from
work/irc-8.5/. I reallt don't get it, but never mind
----------------------------------------
Original comment by: [idella5](http://bitbucket.org/idella5)
no problem
Original comment by: Jason R. Coombs
pytest also fails.
work/irc-8.5 $ PYTHONPATH=build/lib/ pytest going into /mnt/gen2/TmpDir/portage/dev-python/irc-8.5/work/irc-8.5/irc/tests =========================== test_bot.py ============================
========================== test_client.py ==========================
========================= test_schedule.py =========================
no test dir found testing here: /mnt/gen2/TmpDir/portage/dev-python/irc-8.5/work/irc-8.5
Ran 0 test cases in 0.07s (0.06s CPU) All 3 modules OK
well so much for pytest and pytest-runner, the latter of which I've not seen or used before.
work/irc-8.5 $ PYTHONPATH=build/lib/ nosetests
Not being a test suite writer I've sunk enough time in attempting to jag a correct arg for "No VERSION detected."
What I have however is
work/irc-8.5 $ python -c "from irc.client import VERSION;print(VERSION)" (8, 5)
which says to me the test needs re-authoring to do something, well, perhaps 'right'. Anyways. It also appears in some prior versions.