Thanks to visit codestin.com Credit goes to github.com
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 58c0752 commit 92665abCopy full SHA for 92665ab
1 file changed
Lib/test/test_tokenize.py
@@ -868,15 +868,15 @@ def test_open(self):
868
print("# coding: %s" % encoding, file=fp)
869
print("print('euro:\u20ac')", file=fp)
870
with tokenize_open(filename) as fp:
871
- assert fp.encoding == encoding
872
- assert fp.mode == 'r'
+ self.assertEqual(fp.encoding, encoding)
+ self.assertEqual(fp.mode, 'r')
873
874
# test BOM (no coding cookie)
875
with open(filename, 'w', encoding='utf-8-sig') as fp:
876
877
878
- assert fp.encoding == 'utf-8-sig'
879
+ self.assertEqual(fp.encoding, 'utf-8-sig')
880
881
class TestTokenize(TestCase):
882
0 commit comments