From 4480d30b8b69ce33f7fa98d9f38cdee343d1d2f3 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 1 Oct 2014 22:31:04 +0200 Subject: ref #19855: skip uuid test_find_mac on non-Posix as in later branches --- Lib/test/test_uuid.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py index 7ba0967..9f7d606 100644 --- a/Lib/test/test_uuid.py +++ b/Lib/test/test_uuid.py @@ -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 = '''\ -- cgit v0.12