Mercurial > bitten > bitten-test
changeset 132:c43b72672dde
Fix unit tests broken in [136] and [138].
author | cmlenz |
---|---|
date | Fri, 12 Aug 2005 19:14:24 +0000 |
parents | 3ed8f568f60a |
children | 07505cab4ba6 |
files | bitten/build/tests/pythontools.py bitten/tests/recipe.py |
diffstat | 2 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/build/tests/pythontools.py +++ b/bitten/build/tests/pythontools.py @@ -19,7 +19,6 @@ # Author: Christopher Lenz <cmlenz@gmx.de> import os -import os.path import shutil import tempfile import unittest @@ -31,7 +30,7 @@ class TraceTestCase(unittest.TestCase): def setUp(self): - self.temp_dir = tempfile.gettempdir() + self.temp_dir = os.path.realpath(tempfile.gettempdir()) self.ctxt = Context(self.temp_dir) self.summary = open(os.path.join(self.temp_dir, 'test-coverage.txt'), 'w') @@ -75,10 +74,6 @@ def test_missing_file_param(self): self.assertRaises(AssertionError, pythontools.unittest, self.ctxt) - def test_invalid_file_param(self): - self.assertRaises(BuildError, - pythontools.unittest, self.ctxt, file='foobar') - def test_empty_results(self): self.results_xml.write('<?xml version="1.0"?>' '<unittest-results>'
--- a/bitten/tests/recipe.py +++ b/bitten/tests/recipe.py @@ -19,7 +19,6 @@ # Author: Christopher Lenz <cmlenz@gmx.de> import os -import os.path import tempfile import unittest @@ -29,7 +28,7 @@ class RecipeTestCase(unittest.TestCase): def setUp(self): - self.temp_dir = tempfile.gettempdir() + self.temp_dir = os.path.realpath(tempfile.gettempdir()) self.recipe_xml = open(os.path.join(self.temp_dir, 'recipe.xml'), 'w') def tearDown(self):