Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_filename_filtering test #1647

Merged

Conversation

nehaljwani
Copy link
Contributor

CI tests fail with:

======================================================================
FAIL: test_filename_filtering (gensim.test.test_corpora.TestTextDirectoryCorpus)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../lib/python3.6/site-packages/gensim/test/test_corpora.py", line 462, in test_filename_filtering
      self.assertEqual(expected, filenames)
      AssertionError: Lists differ: ['/tmp/tmp0j1tou_7/test1.log', '/tmp/tmp0j1tou_7/test2.log'] != ['/tmp/tmp0j1tou_7/test2.log', '/tmp/tmp0j1tou_7/test1.log']

It's not a real failure, since the files are correct, only their order of
comparison is not same

CI tests fail with:

======================================================================
FAIL: test_filename_filtering (gensim.test.test_corpora.TestTextDirectoryCorpus)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../lib/python3.6/site-packages/gensim/test/test_corpora.py", line 462, in test_filename_filtering
      self.assertEqual(expected, filenames)
      AssertionError: Lists differ: ['/tmp/tmp0j1tou_7/test1.log', '/tmp/tmp0j1tou_7/test2.log'] != ['/tmp/tmp0j1tou_7/test2.log', '/tmp/tmp0j1tou_7/test1.log']

It's not a real failure, since the files are correct, only their order of
comparison is not same
@menshikh-iv
Copy link
Contributor

Nice catch @nehaljwani, congratz with first PR!

@menshikh-iv menshikh-iv merged commit 9266aba into piskvorky:develop Oct 24, 2017
horpto pushed a commit to horpto/gensim that referenced this pull request Oct 28, 2017
CI tests fail with:

======================================================================
FAIL: test_filename_filtering (gensim.test.test_corpora.TestTextDirectoryCorpus)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../lib/python3.6/site-packages/gensim/test/test_corpora.py", line 462, in test_filename_filtering
      self.assertEqual(expected, filenames)
      AssertionError: Lists differ: ['/tmp/tmp0j1tou_7/test1.log', '/tmp/tmp0j1tou_7/test2.log'] != ['/tmp/tmp0j1tou_7/test2.log', '/tmp/tmp0j1tou_7/test1.log']

It's not a real failure, since the files are correct, only their order of
comparison is not same
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants