Skip to content

Commit

Permalink
Merge pull request #1 from rhattersley/line_tweaks
Browse files Browse the repository at this point in the history
Line tweakage
  • Loading branch information
pelson committed Sep 24, 2012
2 parents a737dc4 + 65b94b2 commit 2330059
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/iris/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,16 @@ def check_graphic(self, tol=0):
figure = plt.gcf()

try:
expected_fname = os.path.join(os.path.dirname(__file__), 'results', 'visual_tests', unique_id + '.png')
expected_fname = os.path.join(os.path.dirname(__file__),
'results', 'visual_tests',
unique_id + '.png')

if not os.path.isdir(os.path.dirname(expected_fname)):
os.makedirs(os.path.dirname(expected_fname))

result_fname = os.path.join(os.path.dirname(__file__), 'result_image_comparison', 'result-' + unique_id + '.png')
result_fname = os.path.join(os.path.dirname(__file__),
'result_image_comparison',
'result-' + unique_id + '.png')

if not os.path.isdir(os.path.dirname(result_fname)):
os.makedirs(os.path.dirname(result_fname))
Expand Down

0 comments on commit 2330059

Please sign in to comment.