diff --git a/setup.cfg b/setup.cfg index bebae22..59a8a03 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,6 +30,7 @@ test = setuptools>=38.0 codecov twine + pyinstaller [flake8] max-line-length = 100 diff --git a/tests/test_command_list_split.py b/tests/test_command_list_split.py index de8b9b2..a14a1e0 100644 --- a/tests/test_command_list_split.py +++ b/tests/test_command_list_split.py @@ -20,7 +20,7 @@ PEXPECT LICENSE ''' import wexpect import unittest -from . import PexpectTestCase +from tests import PexpectTestCase class TestCaseSplitCommandLine(PexpectTestCase.PexpectTestCase): def test_split_sizes(self): diff --git a/tests/test_console_reader.py b/tests/test_console_reader.py index b823e2c..84890e5 100644 --- a/tests/test_console_reader.py +++ b/tests/test_console_reader.py @@ -33,7 +33,7 @@ import unittest import win32process import win32api import os -from . import PexpectTestCase +from tests import PexpectTestCase if "RUN_CONSOLE_READER_TEST" not in os.environ: diff --git a/tests/test_constructor.py b/tests/test_constructor.py index 01ceb3a..f8d74f2 100644 --- a/tests/test_constructor.py +++ b/tests/test_constructor.py @@ -21,7 +21,7 @@ PEXPECT LICENSE import wexpect import unittest import time -from . import PexpectTestCase +from tests import PexpectTestCase class TestCaseConstructor(PexpectTestCase.PexpectTestCase): def test_constructor (self): diff --git a/tests/test_delay.py b/tests/test_delay.py index 05c775c..62a2c25 100644 --- a/tests/test_delay.py +++ b/tests/test_delay.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from . import PexpectTestCase +from tests import PexpectTestCase import wexpect diff --git a/tests/test_destructor.py b/tests/test_destructor.py index 46a4d81..2a6a773 100644 --- a/tests/test_destructor.py +++ b/tests/test_destructor.py @@ -20,7 +20,7 @@ PEXPECT LICENSE ''' import wexpect import unittest -from . import PexpectTestCase +from tests import PexpectTestCase import gc import platform import time diff --git a/tests/test_echo.py b/tests/test_echo.py index 46f2bba..9bd0db1 100644 --- a/tests/test_echo.py +++ b/tests/test_echo.py @@ -20,7 +20,7 @@ PEXPECT LICENSE ''' import wexpect import unittest -from . import PexpectTestCase +from tests import PexpectTestCase class EchoTestCase(PexpectTestCase.PexpectTestCase): def testPath(self): diff --git a/tests/test_expect.py b/tests/test_expect.py index e2dd69a..d1b0180 100644 --- a/tests/test_expect.py +++ b/tests/test_expect.py @@ -27,7 +27,7 @@ import sys import os import wexpect -from . import PexpectTestCase +from tests import PexpectTestCase from .utils import no_coverage_env # Many of these test cases blindly assume that sequential directory diff --git a/tests/test_interact.py b/tests/test_interact.py index 5b86e22..d07f30b 100644 --- a/tests/test_interact.py +++ b/tests/test_interact.py @@ -30,7 +30,7 @@ SOFTWARE. import wexpect import time import unittest -from . import PexpectTestCase +from tests import PexpectTestCase class InteractTestCase(PexpectTestCase.PexpectTestCase): diff --git a/tests/test_isalive.py b/tests/test_isalive.py index 8308793..33284fe 100644 --- a/tests/test_isalive.py +++ b/tests/test_isalive.py @@ -23,7 +23,7 @@ import unittest import signal import sys import time -from . import PexpectTestCase +from tests import PexpectTestCase PYBIN = '"{}"'.format(sys.executable) diff --git a/tests/test_long.py b/tests/test_long.py index a5e7425..9464315 100644 --- a/tests/test_long.py +++ b/tests/test_long.py @@ -22,7 +22,7 @@ import wexpect import unittest import sys import os -from . import PexpectTestCase +from tests import PexpectTestCase from . import long_printer puskas_wiki = long_printer.puskas_wiki diff --git a/tests/test_misc.py b/tests/test_misc.py index 5519c41..47b39b5 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -25,7 +25,7 @@ import os import time import wexpect -from . import PexpectTestCase +from tests import PexpectTestCase # the program cat(1) may display ^D\x08\x08 when \x04 (EOF, Ctrl-D) is sent _CAT_EOF = '^D\x08\x08' diff --git a/tests/test_readline.py b/tests/test_readline.py index 583dc8c..1686f11 100644 --- a/tests/test_readline.py +++ b/tests/test_readline.py @@ -31,7 +31,7 @@ import time import sys import os import unittest -from . import PexpectTestCase +from tests import PexpectTestCase here = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, here) diff --git a/tests/test_run.py b/tests/test_run.py index 276faac..7a123e6 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -26,7 +26,7 @@ import tempfile import sys import os import re -from . import PexpectTestCase +from tests import PexpectTestCase unicode_type = str diff --git a/tox.ini b/tox.ini index 31908bd..bda1e48 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ [tox] # The following configuration will run automatically. -envlist = py{37}-{default,legacy_wexpect,spawn_pipe} +envlist = py{37}-{default,legacy_wexpect,spawn_pipe},installed [testenv] description = Unit tests @@ -34,7 +34,7 @@ commands = # normal tests test the cloned files. This testenv tests the installation itself. description = Unit tests installed -changedir = test_installed_01 +changedir = test_01_installed # Appveyor will set the WEXPECT_SPAWN_CLASS to run the proper configuration for each run. passenv =