Skip to content

Commit

Permalink
Fixed the UnitTesting package not running the Unit Tests, issue:
Browse files Browse the repository at this point in the history
SystemError: Parent module '' not loaded, cannot perform relative import
https://github.com/randy3k/UnitTesting/issues/67
  • Loading branch information
evandrocoan committed Dec 4, 2017
1 parent c36c17b commit 4c89728
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/semantic_linefeed_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import textwrap
import unittest

from .text_extraction_unit_tests import PrefixStrippingViewUnitTests
wrap_plus_module = sys.modules["Wrap Plus.wrap_plus"]


Expand All @@ -17,7 +16,7 @@ def run_unit_tests(unit_tests_to_run=[]):

classes = \
[
PrefixStrippingViewUnitTests,
sys.modules["Wrap Plus.tests.text_extraction_unit_tests"].PrefixStrippingViewUnitTests,
SemanticLineWrapUnitTests,
LineBalancingUnitTests,
]
Expand Down

0 comments on commit 4c89728

Please sign in to comment.