Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
3f474122
Commit
3f474122
authored
Jul 06, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add babel to our extra tests
parent
1ef88c12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
test/extra/babel_test.py
test/extra/babel_test.py
+18
-0
No files found.
test/extra/babel_test.py
0 → 100644
View file @
3f474122
import
os
,
sys
,
subprocess
from
test_helper
import
create_virtenv
,
run_test
ENV_NAME
=
"babel_test_env_"
+
os
.
path
.
basename
(
sys
.
executable
)
SRC_DIR
=
os
.
path
.
abspath
(
os
.
path
.
join
(
ENV_NAME
,
"src"
))
PYTHON_EXE
=
os
.
path
.
abspath
(
os
.
path
.
join
(
ENV_NAME
,
"bin"
,
"python"
))
BABEL_DIR
=
os
.
path
.
abspath
(
os
.
path
.
join
(
ENV_NAME
,
"src"
,
"babel"
))
NOSETESTS_EXE
=
os
.
path
.
abspath
(
os
.
path
.
join
(
ENV_NAME
,
"bin"
,
"nosetests"
))
packages
=
[
"nose==1.3.7"
,
"pytz==2015.4"
,
"-e"
,
"git+http://github.com/mitsuhiko/babel.git@1.3#egg=Babel"
]
create_virtenv
(
ENV_NAME
,
packages
,
force_create
=
True
)
subprocess
.
check_call
([
PYTHON_EXE
,
"setup.py"
,
"import_cldr"
],
cwd
=
BABEL_DIR
)
subprocess
.
check_call
([
PYTHON_EXE
,
"setup.py"
,
"build"
],
cwd
=
BABEL_DIR
)
subprocess
.
check_call
([
PYTHON_EXE
,
"setup.py"
,
"install"
],
cwd
=
BABEL_DIR
)
expected
=
[{
"ran"
:
227
,
"failures"
:
3
,
"errors"
:
3
}]
run_test
([
NOSETESTS_EXE
],
cwd
=
BABEL_DIR
,
expected
=
expected
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment