Skip to content

Commit

Permalink
Address feedbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamed Sabri committed Jun 3, 2020
1 parent 66b2255 commit e594505
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def setUpClass(cls):
@classmethod
def tearDownClass(cls):
statsOutputLines = []
for profileScopeName, elapsedTime in cls._profileScopeMetrics.iteritems():
for profileScopeName, elapsedTime in iteritems(cls._profileScopeMetrics):
statsDict = {
'profile': profileScopeName,
'metric': 'time',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def setUp(self):
self.messageLog = []
self.callback = None
cmds.loadPlugin('pxrUsd', quiet=True)
# assertCountEqual in python 3 is equivalent to assertItemsEqual
if sys.version_info[0] >= 3:
self.assertItemsEqual = self.assertCountEqual

def _OnCommandOutput(self, message, messageType, _):
if (messageType == OM.MCommandMessage.kInfo
Expand Down Expand Up @@ -124,9 +127,6 @@ def testBatching(self):
pass
log = self._StopRecording()

# assertCountEqual in python 3 is equivalent to assertItemsEqual
if sys.version_info[0] >= 3:
self.assertItemsEqual = self.assertCountEqual
# Note: we use assertItemsEqual because coalescing may re-order the
# diagnostic messages.
self.assertItemsEqual(log, [
Expand All @@ -151,9 +151,6 @@ def testBatching_DelegateRemoved(self):
Tf.Status("no delegate, this will be lost %d" % i)
log = self._StopRecording()

# assertCountEqual in python 3 is equivalent to assertItemsEqual
if sys.version_info[0] >= 3:
self.assertItemsEqual = self.assertCountEqual
# Note: we use assertItemsEqual because coalescing may re-order the
# diagnostic messages.
self.assertItemsEqual(log, [
Expand Down

0 comments on commit e594505

Please sign in to comment.