Skip to content

Commit

Permalink
Fix relative path ref
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyhowell committed Jun 28, 2017
1 parent 39dd788 commit c0d2844
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_iperf3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import iperf3
import pytest
import subprocess
Expand Down Expand Up @@ -306,7 +307,8 @@ def test_client_succesful_run_udp_output_to_screen(self):
assert response == None

def test_result(self):
with open('results.json') as f:
dirname = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(dirname, 'results.json')) as f:
json = f.read()

result = iperf3.TestResult(json)
Expand Down

0 comments on commit c0d2844

Please sign in to comment.