diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-12-15 18:41:45 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-12-15 18:41:45 -0800 |
commit | 9c2990c593d739f19e85415b841273c74e54911d (patch) | |
tree | 45beb1c1d3d41d2724cb09ddc858b117cafff18a | |
parent | 30d2d0a9db486c5a70848ad5d27b37a3ec48f271 (diff) | |
download | portage-9c2990c593d739f19e85415b841273c74e54911d.tar.gz portage-9c2990c593d739f19e85415b841273c74e54911d.tar.bz2 portage-9c2990c593d739f19e85415b841273c74e54911d.zip |
runTests: initialize portage.data for PyPy
-rwxr-xr-x | pym/portage/tests/runTests | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/tests/runTests b/pym/portage/tests/runTests index 4c1008708..0c476b3eb 100755 --- a/pym/portage/tests/runTests +++ b/pym/portage/tests/runTests @@ -30,6 +30,10 @@ import portage # work the same regardless of global configuration file state/existence. portage._disable_legacy_globals() +# Somehow this prevents "TypeError: expected string" errors +# from grp.getgrnam() with PyPy 1.7 +portage.data._init(os.environ) + import portage.tests as tests from portage.const import PORTAGE_BIN_PATH path = os.environ.get("PATH", "").split(":") |