# HG changeset patch # User osimons # Date 1249129450 0 # Node ID 0c96346efa29e221f346a9d32e727487a7f29d8d # Parent b4d32c0ab577610e40717b1459ae5ac42303449e 0.6dev: New test for [685] failed on Windows. Doh. diff --git a/bitten/tests/recipe.py b/bitten/tests/recipe.py --- a/bitten/tests/recipe.py +++ b/bitten/tests/recipe.py @@ -28,10 +28,11 @@ def test_vars_basedir(self): config = Configuration(properties={'foo.bar': 'baz'}) - ctxt = Context('/foo/${path}/${foo.bar}', config, - {'path': 'bar'}) + ctxt = Context('%s/${path}/${foo.bar}' % os.path.realpath('/foo'), + config, {'path': 'bar'}) - self.assertEquals('/foo/bar/baz', ctxt.vars['basedir']) + self.assertEquals(os.path.realpath('/foo/bar/baz'), + ctxt.vars['basedir']) class RecipeTestCase(unittest.TestCase):