Skip to content

Commit

Permalink
Fix a player python unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
scotty007 committed Jun 24, 2020
1 parent c8709ab commit 7e77cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/PlayerTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,12 @@ def activateNode():

def testInvalidVideoFilename(self):
def tryplay():
assertRaises(SystemError, lambda: video.play())
self.assertRaises(Exception, lambda: video.play())

root = self.loadEmptyScene()
video = avg.VideoNode(href="filedoesntexist.avi", parent=root)
self.start(False,
(lambda: tryplay,
(lambda: tryplay(),
lambda: video.stop()
))

Expand Down

0 comments on commit 7e77cfc

Please sign in to comment.