Skip to content

Commit

Permalink
Fix PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Jun 20, 2018
1 parent a2c91fd commit 2602150
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/python/unittest/API/APITest.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ def testParticles(self):

def testAllocation(self):
""" Test openPMD.Allocation. """
# Should raise, see https://github.com/openPMD/openPMD-api/pull/249#discussion_r194979737
# Should raise, see
# https://github.com/openPMD/openPMD-api/pull/249#discussion_r194979737
self.assertRaises(AttributeError, openPMD.Allocation)

def testData_Order(self):
Expand Down Expand Up @@ -306,13 +307,14 @@ def testRecord(self):
self.assertRaises(TypeError, openPMD.Record)

# Get a record.
record = self.__series.iterations[100].particles['electrons']['positions']['x']
electrons = self.__series.iterations[100].particles['electrons']
position = electrons['position'] # ['x']

# Copy.
copy_record = openPMD.Record(record)
#copy_record = openPMD.Record(record)

# Check.
self.assertIsInstance(copy_record, openPMD.Record)
#self.assertIsInstance(copy_record, openPMD.Record)

def testRecord_Component(self):
""" Test openPMD.Record_Component. """
Expand Down

0 comments on commit 2602150

Please sign in to comment.