1 |
Dnia 2014-08-22, o godz. 15:19:12 |
2 |
Brian Dolbec <dolsen@g.o> napisał(a): |
3 |
|
4 |
> On Thu, 21 Aug 2014 22:19:42 +0200 |
5 |
> Michał Górny <mgorny@g.o> wrote: |
6 |
> |
7 |
> > --- |
8 |
> > pym/portage/tests/__init__.py | 20 |
9 |
> > ++++++++++++++++++ pym/portage/tests/dbapi/test_portdb_cache.py |
10 |
> > | 5 ++--- pym/portage/tests/emerge/test_emerge_slot_abi.py | 7 |
11 |
> > +++---- pym/portage/tests/emerge/test_simple.py | 26 |
12 |
> > ++++++++++++------------ |
13 |
> > pym/portage/tests/lint/test_compile_modules.py | 10 +++++---- |
14 |
> > pym/portage/tests/lint/test_import_modules.py | 8 ++++++-- |
15 |
> > pym/portage/tests/repoman/test_simple.py | 8 +++++--- |
16 |
> > pym/portage/tests/resolver/ResolverPlayground.py | 8 +++++--- |
17 |
> > pym/portage/tests/util/test_getconfig.py | 5 ++--- 9 files |
18 |
> > changed, 62 insertions(+), 35 deletions(-) |
19 |
> > |
20 |
> |
21 |
> diff --git a/pym/portage/tests/util/test_getconfig.py |
22 |
> > b/pym/portage/tests/util/test_getconfig.py index e5fd60f..16f415c |
23 |
> > 100644 --- a/pym/portage/tests/util/test_getconfig.py |
24 |
> > +++ b/pym/portage/tests/util/test_getconfig.py |
25 |
> > @@ -3,6 +3,7 @@ |
26 |
> > |
27 |
> > import tempfile |
28 |
> > |
29 |
> > +import portage |
30 |
> > from portage import os |
31 |
> > from portage import shutil |
32 |
> > from portage import _unicode_encode |
33 |
> > @@ -26,9 +27,7 @@ class GetConfigTestCase(TestCase): |
34 |
> > } |
35 |
> > |
36 |
> > def testGetConfig(self): |
37 |
> > - |
38 |
> > - make_globals_file = os.path.join(PORTAGE_BASE_PATH, |
39 |
> > - 'cnf', 'make.globals') |
40 |
> > + make_globals_file = os.path.join(self.cnf_path, |
41 |
> > "make.globals") d = getconfig(make_globals_file) |
42 |
> > for k, v in self._cases.items(): |
43 |
> > self.assertEqual(d[k], v) |
44 |
> |
45 |
> Why was "import portage" added but not used anywhere in additional code? |
46 |
|
47 |
Good catch. It was used in the previous version of the patch. Fixed now. |
48 |
|
49 |
|
50 |
-- |
51 |
Best regards, |
52 |
Michał Górny |