From eb3bb01ca7005342f09abab458f7350d60568288 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Fri, 5 Dec 2014 17:08:52 +0100 Subject: [PATCH] Do not run the HiddenFileTest unit tests on Windows. The unit tests only consider the string and whether any path component starts with a ".". On Windows the dotfiles are not used for hidden files so the tests fail. To have proper tests on Windows would require to have an actual folder structure with hidden files and folders. --- test/test_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_utils.py b/test/test_utils.py index 28a49d737..a2703c5a6 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import os.path +import sys import unittest from picard import util @@ -73,6 +74,7 @@ class FormatTimeTest(unittest.TestCase): class HiddenFileTest(unittest.TestCase): + @unittest.skipUnless(sys.platform != "win32", "non-windows test") def test(self): self.assertTrue(util.is_hidden('/a/b/.c.mp3')) self.assertTrue(util.is_hidden('/a/.b/.c.mp3'))