Skip to content

test test_client.test_version fails irc-8.5 #26

@jaraco

Description

@jaraco

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

==================================================================
FAIL: irc.tests.test_client.test_version
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/mnt/gen2/TmpDir/portage/dev-python/irc-8.5/work/irc-8.5/irc/tests/test_client.py", line 14, in test_version
    assert irc.client.VERSION, "8, 5"
AssertionError: No VERSION detected.

----------------------------------------------------------------------
Ran 19 tests in 3.125s

FAILED (failures=1)

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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions