Skip to content

Commit 8efb9b3

Browse files
author
Clement Champetier
committed
pyTest: activate testEProcessMethodBasedOnStream
Use assert_almost_equals.
1 parent 5f09da6 commit 8efb9b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/pyTest/testEProcessMethod.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ def testEProcessMethodLongest():
7373
assert_equals( dst_properties.getDuration(), src_properties_longest.getDuration() )
7474

7575

76-
# Several output streams have not the correct duration.
77-
@nottest
7876
def testEProcessMethodBasedOnStream():
7977
"""
8078
Process with method testEProcessMethodBasedOnStream, check output duration.
@@ -104,7 +102,7 @@ def testEProcessMethodBasedOnStream():
104102
dst_properties = dst_inputFile.getProperties()
105103

106104
for dst_stream_properties in dst_properties.getStreamProperties():
107-
assert_equals( dst_stream_properties.getDuration(), src_properties_second.getDuration() )
105+
assert_almost_equals( dst_stream_properties.getDuration(), src_properties_second.getDuration(), delta=0.05 )
108106

109107

110108
def testEProcessMethodBasedOnDuration():

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy