Skip to content

Commit

Permalink
Rollup merge of rust-lang#58489 - xfix:fix-keyword-tests-runtime-erro…
Browse files Browse the repository at this point in the history
…r, r=alexcrichton

Fix runtime error in generate-keyword-tests

The script was made unusable after removing license headers.
  • Loading branch information
kennytm committed Feb 17, 2019
2 parents cfa6a70 + 14001e8 commit 4739cd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etc/generate-keyword-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import stat


template = """
template = """\
// This file was auto-generated using 'src/etc/generate-keyword-tests.py %s'
fn main() {
Expand All @@ -35,7 +35,7 @@
os.chmod(test_file, stat.S_IWUSR)

with open(test_file, 'wt') as f:
f.write(template % (datetime.datetime.now().year, kw, kw, kw))
f.write(template % (kw, kw, kw))

# mark file read-only
os.chmod(test_file, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)

0 comments on commit 4739cd8

Please sign in to comment.