1 # Generate a large text file to test compile 2 # the resulting code that contains a large (>65536 bytes) 3 # resource entry. Just have 12 iterations of the following: 4 # 5 # -100 of each of the lowercase letters 6 # -100 of each of the uppercase letters 7 # -100 of the numbers 0 to 9 8 # 9 # See issue #1580 10 11 import string 12 import sys 13 14 if len(sys.argv) != 2: 15 raise SystemExit("Usage: %s <output-file>" % sys.argv[0]) 16 17 with open(sys.argv[1], "w", newline="\n") as f: 18 for count in range(12): 19 for c in string.ascii_lowercase: 20 f.write("%s\n" % (c * 100)) 21 22 for c in string.ascii_uppercase: 23 f.write("%s\n" % (c * 100)) 24 25 for i in range(10): 26 f.write("%s\n" % (str(i) * 100)) 27