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

Implement unit testing by means of Tox #172

Closed
wants to merge 8 commits into from
Closed

Conversation

evilaliv3
Copy link

With this commit i've switched unit-tests to use Tox

This way we could start testing properly against the different versions of python (at least 2.7 and 3.5) as for ticket #171

With this pull request:

  • tests are performed on python 2.6, 2.7, 3.5, pypy, pypy3
  • tests are performed on twisted 12, 13, 14, 15
  • i've fixed a test to be compatible with twisted 12
  • tests for python 3.5 and pypy3 are currently allowed to fail in order to not impact the success badge
  • unit tests are now using travis container-based infrastructure that should benefit of being a little more fast

@fiorix
Copy link
Owner

fiorix commented Jan 5, 2016

I've never used tox, been away from python for quite a while.. will leave this one to @dpnova.

@@ -149,7 +149,7 @@ def test_object_dict(self):
def test_import_object(self):
import os.path
other_os = import_object("os.path")
self.assertIs(os.path, other_os)
self.assertIdentical(os.path, other_os)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is assertIdentical in python 2.7 @evilaliv3 ?

@dpnova
Copy link
Collaborator

dpnova commented Jan 6, 2016

Aside from my one question this is looking good @evilaliv3 @fiorix - the move to tox will be good for catching edge cases with versions of python/twisted we don't all use ourselves.

@evilaliv3
Copy link
Author

yes @dpnova the one is the alias of the other: https://github.com/twisted/twisted/blob/trunk/twisted/trial/_synctest.py#L454

@dpnova dpnova mentioned this pull request Jan 11, 2016
@auvipy
Copy link

auvipy commented Jun 26, 2016

awesome. but need to resolved conflicts

@dpnova
Copy link
Collaborator

dpnova commented Jun 26, 2016

Should be easy to resolve @evilaliv3 - I'll accept it once it's sorted as this is a good step.

@fiorix
Copy link
Owner

fiorix commented Jul 13, 2019

Stuck for too long and conflicting.

@fiorix fiorix closed this Jul 13, 2019
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.

None yet

4 participants