Index: tests/pybin/tools.py
===================================================================
--- tests/pybin/tools.py	(revision 76de075ab15b34a5f9bd5ec67d323d1c79114dde)
+++ tests/pybin/tools.py	(revision 8e516fdabae6d5e2e08c1a38c8a41fb6c51386af)
@@ -246,5 +246,5 @@
 # transform path to canonical form
 def canonical_path(path):
-	abspath = os.path.abspath(__main__.__file__)
+	abspath = os.path.abspath(os.path.realpath(__main__.__file__))
 	dname = os.path.dirname(abspath)
 	return os.path.join(dname, os.path.normpath(path) )
