Skip to content

Commit a6c81b5

Browse files
committed
Rewrite tests script for using the pybitmessage package, not src
1 parent 0560342 commit a6c81b5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ def unittest_discover():
1313
loader = unittest.defaultTestLoader
1414
# randomize the order of tests in test cases
1515
loader.sortTestMethodsUsing = lambda a, b: random.randint(-1, 1)
16-
# pybitmessage symlink may disappear on Windows
17-
testsuite = loader.discover('src.tests')
18-
testsuite.addTests([loader.discover('src.pyelliptic')])
16+
# pybitmessage symlink disappears on Windows!
17+
testsuite = loader.discover('pybitmessage.tests')
18+
testsuite.addTests([loader.discover('pybitmessage.pyelliptic')])
1919

2020
return testsuite
2121

@@ -24,10 +24,9 @@ def unittest_discover():
2424
success = unittest.TextTestRunner(verbosity=2).run(
2525
unittest_discover()).wasSuccessful()
2626
try:
27-
from src.tests import common
27+
from pybitmessage.tests import common
2828
except ImportError:
2929
checkup = False
30-
print('ImportError from src.tests')
3130
else:
3231
checkup = common.checkup()
3332

0 commit comments

Comments
 (0)