Skip to content

Commit 081e3f2

Browse files
committed
Replace type("") with str
1 parent 627ebc9 commit 081e3f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bpython/test/test_autocomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def function():
409409

410410
def test_completions_are_unicode(self):
411411
for m in self.com.matches(1, "a", locals_={"abc": 10}):
412-
self.assertIsInstance(m, type(""))
412+
self.assertIsInstance(m, str)
413413

414414
def test_mock_kwlist(self):
415415
with mock.patch.object(keyword, "kwlist", new=["abcd"]):

bpython/test/test_curtsies_coderunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def ctrlc():
4646

4747
class TestFakeOutput(unittest.TestCase):
4848
def assert_unicode(self, s):
49-
self.assertIsInstance(s, type(""))
49+
self.assertIsInstance(s, str)
5050

5151
def test_bytes(self):
5252
out = FakeOutput(mock.Mock(), self.assert_unicode, None)

bpython/test/test_curtsies_repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def setUp(self):
405405
self.repl.pager = self.assert_pager_gets_unicode
406406

407407
def assert_pager_gets_unicode(self, text):
408-
self.assertIsInstance(text, type(""))
408+
self.assertIsInstance(text, str)
409409

410410
def test_help(self):
411411
self.repl.pager(self.repl.help_text())

0 commit comments

Comments
 (0)