Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #3

Merged
merged 3 commits into from
Jan 17, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unneccesary guard
  • Loading branch information
davidszotten committed Jan 17, 2015
commit f1773f27b13698d842116deeec2bbef69be12e87
2 changes: 0 additions & 2 deletions pytest_cagoule/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

def parse_spec(spec):
match = spec_re.match(spec)
if match is None:
return []
matches = match.groupdict()

filename = matches['filename']
Expand Down
3 changes: 2 additions & 1 deletion tests/test_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def test_line_get_line_number_filter(
(
'/tmp/foo.py:3-5',
'filename = ? AND (line = ? OR line = ? OR line = ?)',
('/tmp/foo.py', 3, 4, 5)),
('/tmp/foo.py', 3, 4, 5),
),
)
)
def test_get_spec_filter(spec, expected_query, expected_params):
Expand Down