Port: normalize path in test_plugin_bt2
[babeltrace.git] / tests / bindings / python / bt2 / test_plugin.py
index 6e461f3ed3dac7c60b8b13c452fcf1c285d59da0..de79ebc49081d726efabe57d18d2df5d0e288449 100644 (file)
@@ -61,7 +61,9 @@ class PluginTestCase(unittest.TestCase):
         self.assertEqual(self._plugin.name, 'ctf')
 
     def test_path(self):
-        self.assertTrue(self._plugin.path.startswith(_TEST_PLUGIN_PLUGINS_PATH))
+        plugin_path = os.path.normcase(self._plugin.path)
+        plugin_path_env = os.path.normcase(_TEST_PLUGIN_PLUGINS_PATH)
+        self.assertTrue(plugin_path.startswith(plugin_path_env))
 
     def test_author(self):
         self.assertTrue('Philippe Proulx' in self._plugin.author)
This page took 0.02317 seconds and 4 git commands to generate.