Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.extension
Commits
de5bc237
Commit
de5bc237
authored
Aug 25, 2014
by
André Anjos
💬
Browse files
Fix tests in case of multiple prefixes
parent
578c65b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/extension/test_utils.py
View file @
de5bc237
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment