| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 627ebc9 commit 081e3f2
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -409,7 +409,7 @@ def function(): | |||
| 409 | 409 | ||
| 410 | 410 | def test_completions_are_unicode(self): | |
| 411 | 411 | for m in self.com.matches(1, "a", locals_={"abc": 10}): | |
| 412 | - self.assertIsInstance(m, type("")) | ||
| 412 | + self.assertIsInstance(m, str) | ||
| 413 | 413 | ||
| 414 | 414 | def test_mock_kwlist(self): | |
| 415 | 415 | with mock.patch.object(keyword, "kwlist", new=["abcd"]): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,7 @@ def ctrlc(): | |||
| 46 | 46 | ||
| 47 | 47 | class TestFakeOutput(unittest.TestCase): | |
| 48 | 48 | def assert_unicode(self, s): | |
| 49 | - self.assertIsInstance(s, type("")) | ||
| 49 | + self.assertIsInstance(s, str) | ||
| 50 | 50 | ||
| 51 | 51 | def test_bytes(self): | |
| 52 | 52 | out = FakeOutput(mock.Mock(), self.assert_unicode, None) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -405,7 +405,7 @@ def setUp(self): | |||
| 405 | 405 | self.repl.pager = self.assert_pager_gets_unicode | |
| 406 | 406 | ||
| 407 | 407 | def assert_pager_gets_unicode(self, text): | |
| 408 | - self.assertIsInstance(text, type("")) | ||
| 408 | + self.assertIsInstance(text, str) | ||
| 409 | 409 | ||
| 410 | 410 | def test_help(self): | |
| 411 | 411 | self.repl.pager(self.repl.help_text()) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments