1 |
commit: a69782c5177e47da66bb500f4c83380d7ba4add2 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 30 18:27:24 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 18:27:24 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a69782c5 |
7 |
|
8 |
Tweak PYTHONPATH check in emerge/repoman tests. |
9 |
|
10 |
--- |
11 |
pym/portage/tests/emerge/test_simple.py | 2 +- |
12 |
pym/portage/tests/repoman/test_simple.py | 2 +- |
13 |
2 files changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/pym/portage/tests/emerge/test_simple.py b/pym/portage/tests/emerge/test_simple.py |
16 |
index c8f150a..971193f 100644 |
17 |
--- a/pym/portage/tests/emerge/test_simple.py |
18 |
+++ b/pym/portage/tests/emerge/test_simple.py |
19 |
@@ -91,7 +91,7 @@ class SimpleEmergeTestCase(TestCase): |
20 |
if pythonpath is not None and not pythonpath.strip(): |
21 |
pythonpath = None |
22 |
if pythonpath is not None and \ |
23 |
- pythonpath.startswith(PORTAGE_PYM_PATH + ":"): |
24 |
+ pythonpath.split(":")[0] == PORTAGE_PYM_PATH: |
25 |
pass |
26 |
else: |
27 |
if pythonpath is None: |
28 |
|
29 |
diff --git a/pym/portage/tests/repoman/test_simple.py b/pym/portage/tests/repoman/test_simple.py |
30 |
index ba50147..bfc32fc 100644 |
31 |
--- a/pym/portage/tests/repoman/test_simple.py |
32 |
+++ b/pym/portage/tests/repoman/test_simple.py |
33 |
@@ -117,7 +117,7 @@ class SimpleRepomanTestCase(TestCase): |
34 |
if pythonpath is not None and not pythonpath.strip(): |
35 |
pythonpath = None |
36 |
if pythonpath is not None and \ |
37 |
- pythonpath.startswith(PORTAGE_PYM_PATH + ":"): |
38 |
+ pythonpath.split(":")[0] == PORTAGE_PYM_PATH: |
39 |
pass |
40 |
else: |
41 |
if pythonpath is None: |