[pypy-commit] pypy py3k: rearrange for py3
pjenvey
noreply at buildbot.pypy.org
Tue Feb 12 01:50:16 CET 2013
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r61111:2b7b47ad712d
Date: 2013-02-11 16:14 -0800
http://bitbucket.org/pypy/pypy/changeset/2b7b47ad712d/
Log: rearrange for py3
diff --git a/pypy/interpreter/test2/test_app_main.py b/pypy/interpreter/test2/test_app_main.py
--- a/pypy/interpreter/test2/test_app_main.py
+++ b/pypy/interpreter/test2/test_app_main.py
@@ -98,8 +98,7 @@
class TestParseCommandLine:
- def check_options(self, options, sys_argv, **expected):
- assert sys.argv == sys_argv
+ def check_options(self, options, **expected):
for key, value in expected.items():
assert options[key] == value
for key, value in options.items():
@@ -122,7 +121,7 @@
app_options = eval(p.stdout.readline())
sys_argv = eval(p.stdout.readline())
app_options['sys_argv'] = sys_argv
- self.check_options(app_options, sys_argv, expected)
+ self.check_options(app_options, **expected)
def test_all_combinations_I_can_think_of(self):
self.check([], {}, sys_argv=[''], run_stdin=True)
More information about the pypy-commit
mailing list