From a69782c5177e47da66bb500f4c83380d7ba4add2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 30 Aug 2011 11:27:24 -0700 Subject: Tweak PYTHONPATH check in emerge/repoman tests. --- pym/portage/tests/emerge/test_simple.py | 2 +- pym/portage/tests/repoman/test_simple.py | 2 +- 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: -- cgit v1.2.3-1-g7c22