Skip to content

Commit

Permalink
Fix missing test in get_attachment and get_measurement
Browse files Browse the repository at this point in the history
Fix bug introduced when backporting get_attachment and get_measurements.  Fixes traceback when the requested attachment or measurement is missing.
  • Loading branch information
kdsudac committed Dec 28, 2017
1 parent ac2bcae commit 1d96d52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openhtf/core/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def get_attachment(self, attachment_name):
return copy.deepcopy(attachment)


test.logger.warning('Could not find attachment: %s', attachment_name)
self.logger.warning('Could not find attachment: %s', attachment_name)
return None

def get_measurement(self, measurement_name):
Expand Down Expand Up @@ -204,7 +204,7 @@ def get_measurement(self, measurement_name):
measurement = phase_record.measurements[measurement_name]
return ImmutableMeasurement.FromMeasurement(measurement)

test.logger.warning('Could not find measurement: %s', measurement_name)
self.logger.warning('Could not find measurement: %s', measurement_name)
return None

@contextlib.contextmanager
Expand Down

0 comments on commit 1d96d52

Please sign in to comment.