Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cdent/gabbi
Browse files Browse the repository at this point in the history
  • Loading branch information
cdent committed Jan 1, 2015
2 parents ee1cfc7 + fcf51c6 commit c982a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gabbi/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _extract_json_path_value(data, path):

def _load_data_file(self, filename):
"""Read a file from the current test directory."""
path = os.path.join(self.test_directory, filename)
path = os.path.join(self.test_directory, os.path.basename(filename))
with open(path, mode='rb') as data_file:
return data_file.read()

Expand Down

0 comments on commit c982a57

Please sign in to comment.