projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30d2d0a
)
runTests: initialize portage.data for PyPy
author
Zac Medico
<zmedico@gentoo.org>
Fri, 16 Dec 2011 02:41:45 +0000
(18:41 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 16 Dec 2011 02:41:45 +0000
(18:41 -0800)
pym/portage/tests/runTests
patch
|
blob
|
history
diff --git
a/pym/portage/tests/runTests
b/pym/portage/tests/runTests
index 4c10087084183233959772fbb618261362d51104..0c476b3eb17f99c2e618e371b97cd1df72ffa126 100755
(executable)
--- 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(":")