summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-30 11:27:24 -0700
committerZac Medico <zmedico@gentoo.org>2011-08-30 11:27:24 -0700
commita69782c5177e47da66bb500f4c83380d7ba4add2 (patch)
tree775e992c616a5e166ebb4485a9bdf17fddc0e598
parent77896f08ed12a93ff6ee8a657ae11501cc2dbc87 (diff)
downloadportage-a69782c5177e47da66bb500f4c83380d7ba4add2.tar.gz
portage-a69782c5177e47da66bb500f4c83380d7ba4add2.tar.bz2
portage-a69782c5177e47da66bb500f4c83380d7ba4add2.zip
Tweak PYTHONPATH check in emerge/repoman tests.
-rw-r--r--pym/portage/tests/emerge/test_simple.py2
-rw-r--r--pym/portage/tests/repoman/test_simple.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/tests/emerge/test_simple.py b/pym/portage/tests/emerge/test_simple.py
index c8f150ac0..971193f93 100644
--- a/pym/portage/tests/emerge/test_simple.py
+++ b/pym/portage/tests/emerge/test_simple.py
@@ -91,7 +91,7 @@ class SimpleEmergeTestCase(TestCase):
if pythonpath is not None and not pythonpath.strip():
pythonpath = None
if pythonpath is not None and \
- pythonpath.startswith(PORTAGE_PYM_PATH + ":"):
+ pythonpath.split(":")[0] == PORTAGE_PYM_PATH:
pass
else:
if pythonpath is None:
diff --git a/pym/portage/tests/repoman/test_simple.py b/pym/portage/tests/repoman/test_simple.py
index ba5014777..bfc32fc2a 100644
--- a/pym/portage/tests/repoman/test_simple.py
+++ b/pym/portage/tests/repoman/test_simple.py
@@ -117,7 +117,7 @@ class SimpleRepomanTestCase(TestCase):
if pythonpath is not None and not pythonpath.strip():
pythonpath = None
if pythonpath is not None and \
- pythonpath.startswith(PORTAGE_PYM_PATH + ":"):
+ pythonpath.split(":")[0] == PORTAGE_PYM_PATH:
pass
else:
if pythonpath is None: