# HG changeset patch # User cmlenz # Date 1123874064 0 # Node ID c43b72672dde4d44d7911c44a2e60f06956bc798 # Parent 3ed8f568f60a2f85acd28a541e7e685f37ff9549 Fix unit tests broken in [136] and [138]. diff --git a/bitten/build/tests/pythontools.py b/bitten/build/tests/pythontools.py --- a/bitten/build/tests/pythontools.py +++ b/bitten/build/tests/pythontools.py @@ -19,7 +19,6 @@ # Author: Christopher Lenz 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('' '' diff --git a/bitten/tests/recipe.py b/bitten/tests/recipe.py --- a/bitten/tests/recipe.py +++ b/bitten/tests/recipe.py @@ -19,7 +19,6 @@ # Author: Christopher Lenz 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):