From de706617b35199b8efbe8d04d8c79009d1973751 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sun, 19 Dec 2010 20:26:45 +0000 Subject: [PATCH] Don't use symlinks in unit-tests Not supported on Windows. --- tests/latest.xml | 1 - tests/server.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) delete mode 120000 tests/latest.xml diff --git a/tests/latest.xml b/tests/latest.xml deleted file mode 120000 index c15d99c..0000000 --- a/tests/latest.xml +++ /dev/null @@ -1 +0,0 @@ -Hello.xml \ No newline at end of file diff --git a/tests/server.py b/tests/server.py index bce769e..681d204 100644 --- a/tests/server.py +++ b/tests/server.py @@ -27,6 +27,10 @@ class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler): acceptable.get(leaf, None) or \ acceptable.get('*', None) + # (don't use a symlink as they don't work on Windows) + if leaf == 'latest.xml': + leaf = 'Hello.xml' + if not resp: self.send_error(404, "Expected %s; got %s" % (next_step, parsed.path)) elif parsed.path.startswith('/key-info/'): -- 2.11.4.GIT