[Python-checkins] cpython (3.2): ref #19855: skip uuid test_find_mac on non-Posix as in later branches

georg.brandl python-checkins at python.org
Wed Oct 1 22:31:48 CEST 2014


https://hg.python.org/cpython/rev/7ce56727edc7
changeset:   92721:7ce56727edc7
branch:      3.2
parent:      92714:18983332626b
user:        Georg Brandl <georg at python.org>
date:        Wed Oct 01 22:31:04 2014 +0200
summary:
  ref #19855: skip uuid test_find_mac on non-Posix as in later branches

files:
  Lib/test/test_uuid.py |  5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py
--- 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 @@
     except:
         return False
 
-class TestUUID(TestCase):
+class TestUUID(unittest.TestCase):
     last_node = None
     source2node = {}
 
@@ -362,6 +362,7 @@
 
         self.assertEqual(node1, node2)
 
+    @unittest.skipUnless(os.name == 'posix', 'requires Posix')
     def test_find_mac(self):
         data = '''\
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list