# HG changeset patch # User Emmanuel Gil Peyrot # Date 1467074174 -3600 # Node ID 6569eea3db23f692e3e0b0ee14be876d070aeb50 # Parent e0368bea06a6d749a2ec19dfe7523d004c0e8286 Ignore tests which don’t have the .py extension. diff --git a/build.rs b/build.rs --- a/build.rs +++ b/build.rs @@ -9,6 +9,9 @@ fn gen_parse_file_tests(out_dir: String) for file in read_dir("tests/test_parse_files").unwrap() { let path = file.unwrap().path(); + if path.extension().unwrap() != "py" { + continue; + } let test_name = path.file_stem().unwrap().to_str().unwrap(); let _ = f.write_all(format!("#[test] fn {}() {{