# HG changeset patch # User Mads Kiilerich # Date 1320632095 -3600 # Node ID 018ef69bbe2f362fc5c0f2be64f05b6c8d5b4a4e # Parent 565c2e4d216eaffd29f9d1694a6c98d2f9f86fe4 tests: use 'hghave no-windows' to avoid testing reserved file names on windows [ original upstream message ] diff -r 565c2e4d216e -r 018ef69bbe2f tests/hghave --- a/tests/hghave Mon Nov 07 03:14:55 2011 +0100 +++ b/tests/hghave Mon Nov 07 03:14:55 2011 +0100 @@ -209,6 +209,9 @@ except ImportError: return False +def has_windows(): + return os.name == 'nt' + checks = { "baz": (has_baz, "GNU Arch baz client"), "bzr": (has_bzr, "Canonical's Bazaar client"), @@ -239,6 +242,7 @@ "symlink": (has_symlink, "symbolic links"), "tla": (has_tla, "GNU Arch tla client"), "unix-permissions": (has_unix_permissions, "unix-style permissions"), + "windows": (has_windows, "Windows"), } def list_features():