Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(247552)

Delta Between Two Patch Sets: Lib/test/test_gzip.py

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 5 years, 9 months ago
Right Patch Set: Created 5 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_grammar.py ('k') | Lib/test/test_hmac.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #! /usr/bin/env python3
2 """Test script for the gzip module. 1 """Test script for the gzip module.
3 """ 2 """
4 3
5 import unittest 4 import unittest
6 from test import support 5 from test import support
7 import os 6 import os
8 import io 7 import io
9 import struct 8 import struct
10 gzip = support.import_module('gzip') 9 gzip = support.import_module('gzip')
11 10
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 with gzip.open(self.filename, "wt", newline="\n") as f: 545 with gzip.open(self.filename, "wt", newline="\n") as f:
547 f.write(uncompressed) 546 f.write(uncompressed)
548 with gzip.open(self.filename, "rt", newline="\r") as f: 547 with gzip.open(self.filename, "rt", newline="\r") as f:
549 self.assertEqual(f.readlines(), [uncompressed]) 548 self.assertEqual(f.readlines(), [uncompressed])
550 549
551 def test_main(verbose=None): 550 def test_main(verbose=None):
552 support.run_unittest(TestGzip, TestOpen) 551 support.run_unittest(TestGzip, TestOpen)
553 552
554 if __name__ == "__main__": 553 if __name__ == "__main__":
555 test_main(verbose=True) 554 test_main(verbose=True)
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+