Skip to content

Commit

Permalink
Issue #18: fixed import statement in stereo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhoshkun committed Nov 19, 2018
1 parent 34d6a12 commit c3920ac
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/tests/blackmagic/test_stereo.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import time
from pytest import mark
from utils import (StereoFrameConsistencyChecker,
StereoFrameNumpyCompatibilityChecker,
StereoFrameBackwardsCompatibilityChecker)
try:
# in case of PyPI installation, this will work:
from giftgrab.tests.utils import (StereoFrameConsistencyChecker,
StereoFrameNumpyCompatibilityChecker,
StereoFrameBackwardsCompatibilityChecker)
except ImportError:
# in case of installation from source, this will work:
from utils import (StereoFrameConsistencyChecker,
StereoFrameNumpyCompatibilityChecker,
StereoFrameBackwardsCompatibilityChecker)
import pygiftgrab as pgg


0 comments on commit c3920ac

Please sign in to comment.