We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a75f52 commit 410407cCopy full SHA for 410407c
bpython/test/test_config.py
@@ -2,10 +2,11 @@
2
import tempfile
3
import textwrap
4
import unittest
5
+from pathlib import Path
6
7
from bpython import config
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"))
10
11
12
class TestConfig(unittest.TestCase):
@@ -16,7 +17,7 @@ def load_temp_config(self, content):
16
17
f.write(content.encode("utf8"))
18
f.flush()
19
- return config.Config(f.name)
20
+ return config.Config(Path(f.name))
21
22
def test_load_theme(self):
23
color_scheme = dict()
0 commit comments