From: Zac Medico Date: Fri, 16 Dec 2011 02:41:45 +0000 (-0800) Subject: runTests: initialize portage.data for PyPy X-Git-Tag: v2.2.0_alpha82~62 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9c2990c593d739f19e85415b841273c74e54911d;p=portage.git runTests: initialize portage.data for PyPy --- 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(":")