Skip to content

Commit

Permalink
Fixed test for Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Apr 11, 2015
1 parent a875f31 commit 56515d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvisa/testsuite/test_rname.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class TestParsers(BaseTestCase):

def _parse_test(self, rn, **kwargs):
p = parse(rn)
r = {k: getattr(p, k) for k in p._fields + ('interface_type', 'resource_class')}
r = dict((k, getattr(p, k)) for k in p._fields + ('interface_type', 'resource_class'))
r['canonical_resource_name'] = str(p)
self.assertEqual(r, kwargs, rn)

Expand Down

0 comments on commit 56515d3

Please sign in to comment.