aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_other.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index d1230c66..5a76bf6a 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -2126,7 +2126,8 @@ int main()
assert os.path.exists(os.path.join(self.get_dir(), 'test.d')), 'No dependency file generated'
deps = open(os.path.join(self.get_dir(), 'test.d')).read()
- head, tail = deps.split( ':', 2 )
+ # Look for ': ' instead of just ':' to not confuse C:\path\ notation with make "target: deps" rule. Not perfect, but good enough for this test.
+ head, tail = deps.split(': ', 2)
assert 'test.o' in head, 'Invalid dependency target'
assert 'test.cpp' in tail and 'test.hpp' in tail, 'Invalid dependencies generated'