Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
remove redudent code
Browse files Browse the repository at this point in the history
  • Loading branch information
DonggeLiu committed Aug 22, 2017
1 parent 97afc48 commit 016d01c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions mediacloud/mediawords/util/topic_modeling/test_model_lda.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
import logging
import path_helper

# from mediawords.db import connect_to_db
from mediawords.util.topic_modeling.sample_handler import SampleHandler
from mediawords.util.topic_modeling.token_pool import TokenPool
Expand Down Expand Up @@ -145,14 +145,5 @@ def _check_highest_likelihood(self, num: int, name: str):
msg="Topic num {} has a better likelihood {} than {} with {}:{}"
.format(other_num, other_likelihood, name, num, optimal_likelihood))

def test_the_end(self):
"""
Intended to throw an error to show the end of tests
Need this since Travis fails every time due to job exceeded the maximum time limit
"""
unittest.TestCase.assertTrue(self=self,
expr=False,
msg="Reached the end of tests, indicating all tests passed")

if __name__ == '__main__':
unittest.main()

0 comments on commit 016d01c

Please sign in to comment.