Skip to content

Commit 5d1c976

Browse files
committed
Move TEST_CONFIG to bpython.test
1 parent 205ca1b commit 5d1c976

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bpython/test/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from bpython.translations import init
1414
from bpython._py3compat import py3
1515
from six.moves import builtins
16+
import os
1617

1718

1819
class FixLanguageTestCase(unittest.TestCase):
@@ -33,3 +34,6 @@ class MagicIterMock(mock.MagicMock):
3334
def builtin_target(obj):
3435
"""Returns mock target string of a builtin"""
3536
return '%s.%s' % (builtins.__name__, obj.__name__)
37+
38+
39+
TEST_CONFIG = os.path.join(os.path.dirname(__file__), "test.config")

bpython/test/test_crashers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import termios
77
import textwrap
88

9-
from bpython.test import unittest
9+
from bpython.test import unittest, TEST_CONFIG
1010

1111
try:
1212
from twisted.internet import reactor
@@ -32,8 +32,6 @@ def identity(func):
3232
return func
3333
return identity
3434

35-
TEST_CONFIG = os.path.join(os.path.dirname(__file__), "test.config")
36-
3735

3836
def set_win_size(fd, rows, columns):
3937
s = struct.pack('HHHH', rows, columns, 0, 0)

0 commit comments

Comments
 (0)