public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Brian Dolbec <dolsen@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] [PATCH 4/6] tests: Fix running on installed copy of Portage
Date: Fri, 22 Aug 2014 15:19:12 -0700	[thread overview]
Message-ID: <20140822151912.62d83ac0.dolsen@gentoo.org> (raw)
In-Reply-To: <1408652384-1954-5-git-send-email-mgorny@gentoo.org>

On Thu, 21 Aug 2014 22:19:42 +0200
Michał Górny <mgorny@gentoo.org> wrote:

> ---
>  pym/portage/tests/__init__.py                    | 20
> ++++++++++++++++++ pym/portage/tests/dbapi/test_portdb_cache.py
> |  5 ++--- pym/portage/tests/emerge/test_emerge_slot_abi.py |  7
> +++---- pym/portage/tests/emerge/test_simple.py          | 26
> ++++++++++++------------
> pym/portage/tests/lint/test_compile_modules.py   | 10 +++++----
> pym/portage/tests/lint/test_import_modules.py    |  8 ++++++--
> pym/portage/tests/repoman/test_simple.py         |  8 +++++---
> pym/portage/tests/resolver/ResolverPlayground.py |  8 +++++---
> pym/portage/tests/util/test_getconfig.py         |  5 ++--- 9 files
> changed, 62 insertions(+), 35 deletions(-)
> 
 
diff --git a/pym/portage/tests/util/test_getconfig.py
> b/pym/portage/tests/util/test_getconfig.py index e5fd60f..16f415c
> 100644 --- a/pym/portage/tests/util/test_getconfig.py
> +++ b/pym/portage/tests/util/test_getconfig.py
> @@ -3,6 +3,7 @@
>  
>  import tempfile
>  
> +import portage
>  from portage import os
>  from portage import shutil
>  from portage import _unicode_encode
> @@ -26,9 +27,7 @@ class GetConfigTestCase(TestCase):
>  	}
>  
>  	def testGetConfig(self):
> -
> -		make_globals_file = os.path.join(PORTAGE_BASE_PATH,
> -			'cnf', 'make.globals')
> +		make_globals_file = os.path.join(self.cnf_path,
> "make.globals") d = getconfig(make_globals_file)
>  		for k, v in self._cases.items():
>  			self.assertEqual(d[k], v)

Why was "import portage" added but not used anywhere in additional code?


-- 
Brian Dolbec <dolsen>



  reply	other threads:[~2014-08-22 22:20 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-21 20:19 [gentoo-portage-dev] [PATCHES] setup.py install for Portage Michał Górny
2014-08-21 20:19 ` [gentoo-portage-dev] [PATCH 1/6] self-update: Copy only relevant packages from PORTAGE_PYM_PATH Michał Górny
2014-08-22 21:47   ` Brian Dolbec
2014-08-21 20:19 ` [gentoo-portage-dev] [PATCH 2/6] portage.const: Make PORTAGE_PYM_PATH point to the real package tree Michał Górny
2014-08-21 20:19 ` [gentoo-portage-dev] [PATCH 3/6] tests: Append .py to files that need to be installed Michał Górny
2014-08-21 20:19 ` [gentoo-portage-dev] [PATCH 4/6] tests: Fix running on installed copy of Portage Michał Górny
2014-08-22 22:19   ` Brian Dolbec [this message]
2014-08-22 22:52     ` Michał Górny
2014-08-21 20:19 ` [gentoo-portage-dev] [PATCH 5/6] Install Python modules using setup.py Michał Górny
2014-08-22 22:30   ` Brian Dolbec
2014-08-22 22:55     ` Michał Górny
2014-08-23 20:30     ` [gentoo-portage-dev] [PATCH v2] Install Portage " Michał Górny
2014-08-23 21:56       ` Brian Dolbec
2014-08-29 17:08       ` Brian Dolbec
2014-08-29 23:30         ` Brian Dolbec
2014-09-05  6:58       ` [gentoo-portage-dev] [PATCH v3] " Michał Górny
2014-08-21 20:19 ` [gentoo-portage-dev] [PATCH 6/6] travis: Use setup.py for running tests Michał Górny
2014-08-21 20:22 ` [gentoo-portage-dev] [PATCHES] setup.py install for Portage Michał Górny
2014-08-21 20:25   ` Michał Górny
2014-08-22 22:32 ` Brian Dolbec
2014-08-24 19:42 ` Brian Dolbec
2014-08-24 21:19   ` Michał Górny
2014-09-12  7:17 ` Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140822151912.62d83ac0.dolsen@gentoo.org \
    --to=dolsen@gentoo.org \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox