[CLN] remove relative import from tests

This commit is contained in:
Benedek Racz 2020-02-22 23:03:28 +01:00
parent 6ef2b00d8b
commit 2c95c2fbfc
15 changed files with 16 additions and 15 deletions

View File

@ -30,6 +30,7 @@ test =
setuptools>=38.0
codecov
twine
pyinstaller
[flake8]
max-line-length = 100

View File

@ -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):

View File

@ -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:

View File

@ -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):

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from . import PexpectTestCase
from tests import PexpectTestCase
import wexpect

View File

@ -20,7 +20,7 @@ PEXPECT LICENSE
'''
import wexpect
import unittest
from . import PexpectTestCase
from tests import PexpectTestCase
import gc
import platform
import time

View File

@ -20,7 +20,7 @@ PEXPECT LICENSE
'''
import wexpect
import unittest
from . import PexpectTestCase
from tests import PexpectTestCase
class EchoTestCase(PexpectTestCase.PexpectTestCase):
def testPath(self):

View File

@ -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

View File

@ -30,7 +30,7 @@ SOFTWARE.
import wexpect
import time
import unittest
from . import PexpectTestCase
from tests import PexpectTestCase
class InteractTestCase(PexpectTestCase.PexpectTestCase):

View File

@ -23,7 +23,7 @@ import unittest
import signal
import sys
import time
from . import PexpectTestCase
from tests import PexpectTestCase
PYBIN = '"{}"'.format(sys.executable)

View File

@ -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

View File

@ -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'

View File

@ -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)

View File

@ -26,7 +26,7 @@ import tempfile
import sys
import os
import re
from . import PexpectTestCase
from tests import PexpectTestCase
unicode_type = str

View File

@ -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 =