file directly (instead of sucking it all into a list of lines first).
# test_normalization
# Whether a skip is expected here depends on whether a large test
# input file has been downloaded. test_normalization.skip_expected
-# controls that
+# controls that.
_expectations = {
'win32':
raise TestSkipped(TESTDATAFILE + " not found, download from " +
"http://www.unicode.org/Public/UNIDATA/" + TESTDATAFILE)
- data = open(TESTDATAFILE).readlines()
-
part1_data = {}
- for line in data:
+ for line in open(TESTDATAFILE):
if '#' in line:
line = line.split('#')[0]
line = line.strip()