summaryrefslogtreecommitdiff
path: root/morphlib/buildsystem_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-30 16:43:50 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-30 16:43:50 +0100
commitdc589edd6f3faa94c6cbaf66c2caadff51cfbe5a (patch)
tree212299c99016c4e70b0ea5b104a2619a4fd5d3c6 /morphlib/buildsystem_tests.py
parent45655da4505ba03c84f634501ba8e8eee6f920a4 (diff)
downloadmorph-dc589edd6f3faa94c6cbaf66c2caadff51cfbe5a.tar.gz
Change detect_build_system to not default to manual
We do not want a manual build system if there is no morphology, since building with a no-op manual build system just hides the fact that the chunk can't be built because a morphology is missing.
Diffstat (limited to 'morphlib/buildsystem_tests.py')
-rw-r--r--morphlib/buildsystem_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/buildsystem_tests.py b/morphlib/buildsystem_tests.py
index 6d426d8c..2d688922 100644
--- a/morphlib/buildsystem_tests.py
+++ b/morphlib/buildsystem_tests.py
@@ -121,10 +121,10 @@ class DetectBuildSystemTests(unittest.TestCase):
def tearDown(self):
shutil.rmtree(self.tempdir)
- def test_autodetects_manual(self):
+ def test_does_not_autodetect_manual(self):
create_manual_project(self.tempdir)
bs = morphlib.buildsystem.detect_build_system(self.tempdir)
- self.assertEqual(type(bs), morphlib.buildsystem.ManualBuildSystem)
+ self.assertEqual(bs, None)
def test_autodetects_autotools(self):
create_autotools_project(self.tempdir)