Revert "run tests without depending on an already installed instance"

Breaks CLI (and probably other modules that use `dist.version`):

    [*]~/d/isso:master> isso -c sample.cfg run
    Traceback (most recent call last):
    File "/home/.../dev/isso/bin/isso", line 9, in <module>
        load_entry_point('isso==0.8.dev0', 'console_scripts', 'isso')()
    File "/home/.../dev/isso/isso/__init__.py", line 198, in main
        parser.add_argument('--version', action='version', version='%(prog)s ' + dist.version)
    AttributeError: 'module' object has no attribute 'version

This reverts commit 4e5e8c44f7.
This commit is contained in:
Martin Zimmermann 2014-03-09 15:30:33 +01:00
parent a94472d062
commit c6e9c7eee4
2 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,8 @@
from __future__ import print_function
import isso as dist
import pkg_resources
dist = pkg_resources.get_distribution("isso")
# check if exectuable is `isso` and gevent is available
import sys

View File

@ -2,7 +2,8 @@
from __future__ import unicode_literals
import isso as dist
import pkg_resources
dist = pkg_resources.get_distribution("isso")
import json