Commit de5bc237 authored by André Anjos's avatar André Anjos 💬
Browse files

Fix tests in case of multiple prefixes

parent 578c65b3
......@@ -23,8 +23,6 @@ def test_find_file():
assert f
nose.tools.eq_(len(f), 1)
nose.tools.eq_(os.path.basename(f[0]), 'array.h')
def test_find_header():
......@@ -33,14 +31,10 @@ def test_find_header():
assert f1
nose.tools.eq_(len(f1), 1)
nose.tools.eq_(os.path.basename(f1[0]), 'array.h')
f2 = find_header(os.path.join('blitz', 'array.h'))
nose.tools.eq_(len(f2), 1)
nose.tools.eq_(os.path.basename(f2[0]), 'array.h')
assert f2
......@@ -64,8 +58,6 @@ def test_egrep():
assert f
nose.tools.eq_(len(f), 1)
matches = egrep(f[0], r"^#\s*define\s+BOOST_VERSION\s+(\d+)\s*$")
nose.tools.eq_(len(matches), 1)
......@@ -76,8 +68,6 @@ def test_find_versioned_library():
assert f
nose.tools.eq_(len(f), 1)
matches = egrep(f[0], r"^#\s*define\s+BOOST_VERSION\s+(\d+)\s*$")
nose.tools.eq_(len(matches), 1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment