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

Remove unittest2 imports #1490

Merged
merged 10 commits into from
Jul 21, 2017
Merged

Remove unittest2 imports #1490

merged 10 commits into from
Jul 21, 2017

Conversation

souravsingh
Copy link
Contributor

No description provided.

@souravsingh
Copy link
Contributor Author

souravsingh commented Jul 19, 2017

This is related to issue conda-forge/staged-recipes#3225 regarding running tests in conda-forge.

I believe the tests in conda-forge should pass once we have the patch merged and a new version released later.

import unittest2 as unittest
import sys

if sys.version_info < (2, 7):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@souravsingh now we don't support Python version that older than 2.7, you no need this if

@souravsingh
Copy link
Contributor Author

souravsingh commented Jul 19, 2017

@menshikh-iv Can you take a look at the PR?

Since Gensim uses Python 2.7, Do we have to remove unittest2 from the test environment?

@menshikh-iv
Copy link
Contributor

@souravsingh yes, we should to replace unittest2 to unittest and remove it from env.

@souravsingh souravsingh changed the title Fix backward compatibility for unittest Remove unittest2 imports Jul 20, 2017
@menshikh-iv
Copy link
Contributor

Thanks @souravsingh 👍

@menshikh-iv menshikh-iv merged commit 12f36b5 into piskvorky:develop Jul 21, 2017
@souravsingh souravsingh deleted the fix-tests branch July 21, 2017 08:56
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