From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B2DBA138010 for ; Sun, 28 Oct 2012 15:38:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61F6E21C050; Sun, 28 Oct 2012 15:32:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A031621C0BE for ; Sun, 28 Oct 2012 15:24:57 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0FC1A33D809 for ; Sun, 28 Oct 2012 15:24:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 4842DE5436 for ; Sun, 28 Oct 2012 15:24:55 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1351437934.975fd2dde556125ce11bf08085ebd8d9187b8ff3.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoopm:master commit in: / X-VCS-Repository: proj/gentoopm X-VCS-Files: setup.py X-VCS-Directories: / X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 975fd2dde556125ce11bf08085ebd8d9187b8ff3 X-VCS-Branch: master Date: Sun, 28 Oct 2012 15:24:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d9a41e84-2c6a-47b9-9d0c-7def78f2973d X-Archives-Hash: de164ebfe35766caf2ed05278b3d853b commit: 975fd2dde556125ce11bf08085ebd8d9187b8ff3 Author: Michał Górny gentoo org> AuthorDate: Sun Oct 28 15:25:34 2012 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Oct 28 15:25:34 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoopm.git;a=commit;h=975fd2dd setup.py test: reload gentoopm to respect build-dir more. --- setup.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/setup.py b/setup.py index ddb119d..00ff536 100755 --- a/setup.py +++ b/setup.py @@ -43,6 +43,12 @@ class TestCommand(Command): def run(self): sys.path.insert(0, self.build_lib) + try: + from imp import reload + except ImportError: + pass + reload(sys.modules['gentoopm']) + import unittest import gentoopm.submodules, gentoopm.tests