diff options
author | jquast <contact@jeffquast.com> | 2014-09-06 16:54:42 -0700 |
---|---|---|
committer | jquast <contact@jeffquast.com> | 2014-09-06 16:55:00 -0700 |
commit | a0458cbf31cd0bdef1ada4aaefd7726a10766be1 (patch) | |
tree | 2fcde183ba198f72a755799581d4747d20c86b36 | |
parent | 046adad509c8a16470369db2d3a9188665c9830f (diff) | |
download | blessings-a0458cbf31cd0bdef1ada4aaefd7726a10766be1.tar.gz |
use relative imports for tests.accessories.py
-rw-r--r-- | blessed/tests/__init__.py | 0 | ||||
-rw-r--r-- | blessed/tests/test_core.py | 2 | ||||
-rw-r--r-- | blessed/tests/test_keyboard.py | 6 | ||||
-rw-r--r-- | blessed/tests/test_length_sequence.py | 2 | ||||
-rw-r--r-- | blessed/tests/test_sequences.py | 2 | ||||
-rw-r--r-- | blessed/tests/test_wrap.py | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/blessed/tests/__init__.py b/blessed/tests/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/blessed/tests/__init__.py diff --git a/blessed/tests/test_core.py b/blessed/tests/test_core.py index a779e53..37c4d92 100644 --- a/blessed/tests/test_core.py +++ b/blessed/tests/test_core.py @@ -15,7 +15,7 @@ import imp import os # local -from accessories import ( +from .accessories import ( as_subprocess, TestTerminal, unicode_cap, diff --git a/blessed/tests/test_keyboard.py b/blessed/tests/test_keyboard.py index 3c5d6cb..e079c88 100644 --- a/blessed/tests/test_keyboard.py +++ b/blessed/tests/test_keyboard.py @@ -16,7 +16,7 @@ import pty import sys import os -from accessories import ( +from .accessories import ( read_until_eof, read_until_semaphore, SEND_SEMAPHORE, @@ -592,7 +592,7 @@ def test_esc_delay_cbreak_135(): assert key_name == u'KEY_ESCAPE' assert os.WEXITSTATUS(status) == 0 assert math.floor(time.time() - stime) == 1.0 - assert 135 <= int(duration_ms) <= 145, int(duration_ms) + assert 134 <= int(duration_ms) <= 145, int(duration_ms) def test_esc_delay_cbreak_timout_0(): @@ -627,7 +627,7 @@ def test_esc_delay_cbreak_timout_0(): assert key_name == u'KEY_ESCAPE' assert os.WEXITSTATUS(status) == 0 assert math.floor(time.time() - stime) == 0.0 - assert 35 <= int(duration_ms) <= 45, int(duration_ms) + assert 34 <= int(duration_ms) <= 45, int(duration_ms) def test_keystroke_default_args(): diff --git a/blessed/tests/test_length_sequence.py b/blessed/tests/test_length_sequence.py index e93c5f2..93aa2d1 100644 --- a/blessed/tests/test_length_sequence.py +++ b/blessed/tests/test_length_sequence.py @@ -11,7 +11,7 @@ try: except ImportError: from io import StringIO -from accessories import ( +from .accessories import ( all_standard_terms, as_subprocess, TestTerminal, diff --git a/blessed/tests/test_sequences.py b/blessed/tests/test_sequences.py index 8babad4..ff010f7 100644 --- a/blessed/tests/test_sequences.py +++ b/blessed/tests/test_sequences.py @@ -8,7 +8,7 @@ import platform import sys import os -from accessories import ( +from .accessories import ( unsupported_sequence_terminals, all_standard_terms, as_subprocess, diff --git a/blessed/tests/test_wrap.py b/blessed/tests/test_wrap.py index d15073e..36e752d 100644 --- a/blessed/tests/test_wrap.py +++ b/blessed/tests/test_wrap.py @@ -5,7 +5,7 @@ import struct import fcntl import sys -from accessories import ( +from .accessories import ( as_subprocess, TestTerminal, many_columns, |