File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ def testRewrapAudioStream():
51
51
# check audio properties
52
52
src_propertiesMap = src_audioStream .getPropertiesAsMap ()
53
53
dst_propertiesMap = dst_audioStream .getPropertiesAsMap ()
54
- for i in range ( 0 , len ( src_propertiesMap )) :
54
+ for key in src_propertiesMap :
55
55
# @todo: don't skip channel layout
56
- if src_propertiesMap [ i ][ 0 ] == "channelLayout" :
56
+ if key == "channelLayout" :
57
57
continue
58
- assert_equals ( src_propertiesMap [i ], dst_propertiesMap [i ] )
58
+ assert_equals ( src_propertiesMap [key ], dst_propertiesMap [key ] )
59
59
60
60
def testRewrapVideoStream ():
61
61
"""
@@ -95,5 +95,5 @@ def testRewrapVideoStream():
95
95
# check audio properties
96
96
src_propertiesMap = src_videoStream .getPropertiesAsMap ()
97
97
dst_propertiesMap = dst_videoStream .getPropertiesAsMap ()
98
- for i in range ( 0 , len ( src_propertiesMap )) :
99
- assert_equals ( src_propertiesMap [i ], dst_propertiesMap [i ] )
98
+ for key in src_propertiesMap :
99
+ assert_equals ( src_propertiesMap [key ], dst_propertiesMap [key ] )
You can’t perform that action at this time.
0 commit comments