summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-20 20:29:39 (GMT)
committerBrett Cannon <brett@python.org>2012-04-20 20:29:39 (GMT)
commitbbdc9cd3d2cbdc2cc64d2945da175bdc18a93ce3 (patch)
tree8cb84432c396954bb76c49064e6eaacc63651c36 /Lib/test
parent1b5123aae5632193caace8b1427d767429b6850b (diff)
downloadcpython-bbdc9cd3d2cbdc2cc64d2945da175bdc18a93ce3.zip
cpython-bbdc9cd3d2cbdc2cc64d2945da175bdc18a93ce3.tar.gz
cpython-bbdc9cd3d2cbdc2cc64d2945da175bdc18a93ce3.tar.bz2
Use a skipUnless decorator instead of conditional renaming.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_import.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index f02681a..1b57432 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -455,6 +455,7 @@ class PathsTests(unittest.TestCase):
unload("test_trailing_slash")
# Regression test for http://bugs.python.org/issue3677.
+ @unittest.skipUnless(sys.platform == 'win32', 'Windows-specific')
def _test_UNC_path(self):
with open(os.path.join(self.path, 'test_trailing_slash.py'), 'w') as f:
f.write("testdata = 'test_trailing_slash'")
@@ -470,9 +471,6 @@ class PathsTests(unittest.TestCase):
self.assertEqual(mod.testdata, 'test_trailing_slash')
unload("test_trailing_slash")
- if sys.platform == "win32":
- test_UNC_path = _test_UNC_path
-
class RelativeImportTests(unittest.TestCase):