Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Commit

Permalink
BUG: fix various tests issues preventing running under haas
Browse files Browse the repository at this point in the history
  • Loading branch information
cournape committed Aug 31, 2014
1 parent 3566296 commit 365eef5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bento/commands/tests/test_build.py
Expand Up @@ -83,7 +83,7 @@
Modules: fubar
"""

class _TestBuildSimpleExtension(unittest.TestCase):
class _TestBuildSimpleExtension(object):
# Those should be set by subclasses
_configure_context = None
_build_context = None
Expand Down Expand Up @@ -249,7 +249,7 @@ def test_simple_inplace(self):
for f in isection.files[0]:
self.assertTrue(op.exists(op.join(source_dir, f)))

class TestBuildDistutils(_TestBuildSimpleExtension):
class TestBuildDistutils(_TestBuildSimpleExtension, unittest.TestCase):
def setUp(self):
from bento.commands.build_distutils import DistutilsBuilder
_TestBuildSimpleExtension.setUp(self)
Expand All @@ -274,9 +274,9 @@ def test_simple_library(self):
def test_simple_extension(self):
super(TestBuildDistutils, self).test_simple_extension()

class TestBuildYaku(_TestBuildSimpleExtension):
class TestBuildYaku(_TestBuildSimpleExtension, unittest.TestCase):
def setUp(self):
super(TestBuildYaku, self).setUp()
_TestBuildSimpleExtension.setUp(self)

self._configure_context = ConfigureYakuContext
self._build_context = BuildYakuContext
Expand Down Expand Up @@ -318,7 +318,7 @@ def _not_has_waf():
def skip_no_waf(f):
return skip_if(_not_has_waf(), "waf not found")(f)

class TestBuildWaf(_TestBuildSimpleExtension):
class TestBuildWaf(_TestBuildSimpleExtension, unittest.TestCase):
#def __init__(self, *a, **kw):
# super(TestBuildWaf, self).__init__(*a, **kw)

Expand Down Expand Up @@ -386,7 +386,7 @@ def setUp(self):
self._fake_output = None
self._stderr = sys.stderr
self._stdout = sys.stdout
super(TestBuildWaf, self).setUp()
_TestBuildSimpleExtension.setUp(self)
# XXX: ugly stuff to make waf and nose happy together
sys.stdout = EncodedStringIO()
sys.stderr = EncodedStringIO()
Expand Down
Empty file added bento/compat/tests/__init__.py
Empty file.
Empty file added bento/pypi/tests/__init__.py
Empty file.

0 comments on commit 365eef5

Please sign in to comment.