FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-compiler/test_testcorpus_run.py at main · pfalcon/python-compiler · GitHub
pfalcon
/
python-compiler
Public
forked from
facebookarchive/python-compiler
Notifications
You must be signed in to change notification settings
Fork
1
Star
4
Code
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-compiler
/
test_testcorpus_run.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
13 lines (11 loc) · 391 Bytes
Breadcrumbs
python-compiler
/
test_testcorpus_run.py
Copy path
File metadata and controls
executable file
·
13 lines (11 loc) · 391 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3
#
# Compare "compiler" package output against reference data produced
# by test_testcorpus_prepare.py.
#
import
glob
from
subprocess
import
check_call
for
t
in
sorted
(
glob
.
glob
(
"testcorpus/*.py"
)):
print
(
t
)
check_call
(
"./python3.5-nopeephole compiler_runtest.py %s > %s.out"
%
(
t
,
t
),
shell
=
True
)
check_call
(
"diff -u %s.exp %s.out"
%
(
t
,
t
),
shell
=
True
)
Back
|
FazBrowse Home
|
New Git URL