Skip to content

Commit f45b59b

Browse files
committed
Drop testfixtures test dependency
This is not needed with pytest. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 2fa6a2a commit f45b59b

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ commands:
2525
steps:
2626
- run: |
2727
python setup.py install
28-
python -m pip install pytest testfixtures
28+
python -m pip install pytest
2929
- run: pytest
3030

3131
jobs:

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ environment:
1111
install:
1212
- "%PYTHON_EXE% --version"
1313
- "%PYTHON_EXE% setup.py install"
14-
- "%PYTHON_EXE% -m pip install pytest testfixtures"
14+
- "%PYTHON_EXE% -m pip install pytest"
1515

1616
build: off
1717

tests/test_jsonyamlxml_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def check_document(self, document, expected_loc, regen=False):
3636
with io.open(expected_loc, encoding='utf-8') as ex:
3737
expected = json.load(ex, object_pairs_hook=OrderedDict)
3838

39-
utils_test.compare(expected, result)
39+
assert result == expected
4040

4141
def test_json_parser(self):
4242
parser = jsonparser.Parser(Builder(), StandardLogger())

tests/test_rdf_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ def check_document(self, document, expected_loc, regen=False):
4444
with io.open(expected_loc, 'r', encoding='utf-8') as ex:
4545
expected = json.load(ex)
4646

47-
utils_test.compare(result, expected)
47+
assert result == expected

tests/test_write_anything.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_write_anything(in_file, out_format, tmpdir):
5959

6060
test = in_basename + "-" + out_format
6161
if test not in UNSTABLE_CONVERSIONS:
62-
utils_test.compare(result, result2)
62+
assert result==result2
6363
else:
6464
# if this test fails, this means we are more stable \o/
6565
# in that case, please remove the test from UNSTABLE_CONVERSIONS list

tests/utils_test.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
import spdx
2626
from spdx import utils
2727

28-
try:
29-
from testfixtures import compare
30-
except ImportError:
31-
def compare(a, b):
32-
assert a == b, "for better comparaison results, please pip install testfixtures"
33-
3428

3529
test_data_dir = os.path.join(os.path.dirname(__file__), 'data')
3630

0 commit comments

Comments
 (0)