Skip to content

Commit 410407c

Browse files
committed
Pass correctly typed values
1 parent 0a75f52 commit 410407c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bpython/test/test_config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
import tempfile
33
import textwrap
44
import unittest
5+
from pathlib import Path
56

67
from bpython import config
78

8-
TEST_THEME_PATH = os.path.join(os.path.dirname(__file__), "test.theme")
9+
TEST_THEME_PATH = Path(os.path.join(os.path.dirname(__file__), "test.theme"))
910

1011

1112
class TestConfig(unittest.TestCase):
@@ -16,7 +17,7 @@ def load_temp_config(self, content):
1617
f.write(content.encode("utf8"))
1718
f.flush()
1819

19-
return config.Config(f.name)
20+
return config.Config(Path(f.name))
2021

2122
def test_load_theme(self):
2223
color_scheme = dict()

0 commit comments

Comments
 (0)