Description: Skip win32 tests that can't pass reliably.
 win32 tests cannot pass reliably on all python/debian/ubuntu releases,
 skip them unless the tests run on win32 itself.
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

Index: bzr-2.6.0+bzr6593/bzrlib/tests/test_osutils.py
===================================================================
--- bzr-2.6.0+bzr6593.orig/bzrlib/tests/test_osutils.py
+++ bzr-2.6.0+bzr6593/bzrlib/tests/test_osutils.py
@@ -925,6 +925,7 @@ class TestWin32Funcs(tests.TestCase):
     """Test that _win32 versions of os utilities return appropriate paths."""
 
     def test_abspath(self):
+        self.requireFeature(features.win32_feature)
         self.assertEqual('C:/foo', osutils._win32_abspath('C:\\foo'))
         self.assertEqual('C:/foo', osutils._win32_abspath('C:/foo'))
         self.assertEqual('//HOST/PATH', osutils._win32_abspath(r'\\HOST\path'))
@@ -977,6 +978,7 @@ class TestWin32Funcs(tests.TestCase):
         self.assertEqual('C:\\foo', osutils._win32_fixdrive('c:\\foo'))
 
     def test_win98_abspath(self):
+        self.requireFeature(features.win32_feature)
         # absolute path
         self.assertEqual('C:/foo', osutils._win98_abspath('C:\\foo'))
         self.assertEqual('C:/foo', osutils._win98_abspath('C:/foo'))
Index: bzr-2.6.0+bzr6593/bzrlib/tests/test_transport.py
===================================================================
--- bzr-2.6.0+bzr6593.orig/bzrlib/tests/test_transport.py
+++ bzr-2.6.0+bzr6593/bzrlib/tests/test_transport.py
@@ -815,6 +815,7 @@ class TestLocalTransportWriteStream(test
 class TestWin32LocalTransport(tests.TestCase):
 
     def test_unc_clone_to_root(self):
+        self.requireFeature(features.win32_feature)
         # Win32 UNC path like \\HOST\path
         # clone to root should stop at least at \\HOST part
         # not on \\
Index: bzr-2.6.0+bzr6593/bzrlib/tests/test_urlutils.py
===================================================================
--- bzr-2.6.0+bzr6593.orig/bzrlib/tests/test_urlutils.py
+++ bzr-2.6.0+bzr6593/bzrlib/tests/test_urlutils.py
@@ -26,7 +26,7 @@ from bzrlib.errors import (
     InvalidRebaseURLs,
     PathNotChild,
     )
-from bzrlib.tests import TestCaseInTempDir, TestCase, TestSkipped
+from bzrlib.tests import features, TestCaseInTempDir, TestCase, TestSkipped
 
 
 class TestUrlToPath(TestCase):
@@ -411,6 +411,7 @@ class TestUrlToPath(TestCase):
         self.assertFalse(isinstance(result, unicode))
 
     def test_win32_unc_path_to_url(self):
+        self.requireFeature(features.win32_feature)
         to_url = urlutils._win32_local_path_to_url
         self.assertEqual('file://HOST/PATH',
             to_url(r'\\HOST\path'))
