]> granicus.if.org Git - python/commitdiff
ref #19855: skip uuid test_find_mac on non-Posix as in later branches
authorGeorg Brandl <georg@python.org>
Wed, 1 Oct 2014 20:31:04 +0000 (22:31 +0200)
committerGeorg Brandl <georg@python.org>
Wed, 1 Oct 2014 20:31:04 +0000 (22:31 +0200)
Lib/test/test_uuid.py

index 7ba09677a7013f7df3117778783e739be4d76887..9f7d60623833364f4961d00d9190eebc6f51b3e2 100644 (file)
@@ -1,4 +1,4 @@
-from unittest import TestCase
+import unittest
 from test import support
 import builtins
 import io
@@ -12,7 +12,7 @@ def importable(name):
     except:
         return False
 
-class TestUUID(TestCase):
+class TestUUID(unittest.TestCase):
     last_node = None
     source2node = {}
 
@@ -362,6 +362,7 @@ class TestUUID(TestCase):
 
         self.assertEqual(node1, node2)
 
+    @unittest.skipUnless(os.name == 'posix', 'requires Posix')
     def test_find_mac(self):
         data = '''\