d7547ff
# HG changeset patch
d7547ff
# User Scott Tsai <scottt.tw@gmail.com>
d7547ff
# Date 1358446261 -28800
d7547ff
# Node ID 12aa73c5da595a08f587c14a74e84bf72f0bf7a0
d7547ff
# Parent  a46039840b0ed8466bebcddae9d4f1df60d3bc98
d7547ff
tests/all_tests.py: add local paths to the front of sys.path
d7547ff
d7547ff
While doing pycparser development on a machine that already has an
d7547ff
older version of pycparser installed, we want unit tests to run against
d7547ff
the local copy instead of the system wide copy of pycparser.
d7547ff
This patch adds '.' and '..' to the front of sys.path instead of the back.
d7547ff
d7547ff
diff --git a/tests/all_tests.py b/tests/all_tests.py
d7547ff
--- a/tests/all_tests.py
d7547ff
+++ b/tests/all_tests.py
d7547ff
@@ -1,7 +1,7 @@
d7547ff
 #!/usr/bin/env python
d7547ff
 
d7547ff
 import sys
d7547ff
-sys.path.extend(['.', '..'])
d7547ff
+sys.path[0:0] = ['.', '..']
d7547ff
 
d7547ff
 import unittest
d7547ff