Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python
python-datadiff
python-datadiff-no-six.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-datadiff-no-six.patch of Package python-datadiff
diff --git a/datadiff/tests/test_datadiff.py b/datadiff/tests/test_datadiff.py index 83f39e6..f30b340 100644 --- a/datadiff/tests/test_datadiff.py +++ b/datadiff/tests/test_datadiff.py @@ -5,7 +5,6 @@ from datetime import datetime from unittest.case import SkipTest import pytest -import six from datadiff import diff, DataDiff, NotHashable, DiffNotImplementedForType, DiffTypeError @@ -43,20 +42,6 @@ def test_diff_multiline_strings(): assert str(d) == expected -def test_diff_unicode_vs_str(): - if six.PY3: - raise SkipTest("Unicode and bytes are different types") - d = diff(u'abc\ndef\nghi', b'abc\nghi', fromfile="x", tofile="y") - expected = dedent('''\ - --- x - +++ y - @@ -1,3 +1,2 @@ - abc - -def - ghi''') - assert str(d) == expected - - def test_diff_list(): a = [1, 'xyz', 2, 3, 4, 5] b = [1, 'abc', 2, 4, 6] diff --git a/tox.ini b/tox.ini index b9d77fc..b9c446a 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,6 @@ setenv = PYTHONHASHSEED=0 deps = coverage pytest - six commands = coverage run --source=datadiff --branch --parallel-mode {envbindir}/pytest
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor