4/python3.8/contextlib.py:131: in __exit__ self.gen.throw(type, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ expected = 'Error: warning in C function returns_warning: This is a warning\n on line 1:14 of stdin, in function `returns_warning`\n from line 1:14 of stdin\n>> a { content: returns_warning(); }\n -------------^\n' @contextlib.contextmanager def assert_raises_compile_error(expected): with pytest.raises(sass.CompileError) as excinfo: yield msg, = excinfo.value.args > assert msg == expected, (msg, expected) E AssertionError: ('Error: warning in C function returns_warning: This is a warning E on line 1 of stdin, in function `returns_wa...unction `returns_warning` E from line 1:14 of stdin E >> a { content: returns_warning(); } E -------------^ E ') E assert 'Error: warni...----------^\n' == 'Error: warnin...----------^\n' E Skipping 71 identical leading characters in diff, use -v to show E - on line 1 of stdin, in function `returns_warning` E + on line 1:14 of stdin, in function `returns_warning` E ? +++ E - from line 1 of stdin E + from line 1:14 of stdin E ? +++... E E ...Full output truncated (3 lines hidden), use '-vv' to show sasstests.py:1381: AssertionError _________________________ test_stack_trace_formatting __________________________ def test_stack_trace_formatting(): try: sass.compile(string=u'a{☃') raise AssertionError('expected to raise CompileError') except sass.CompileError: tb = traceback.format_exc() > assert tb.endswith( 'CompileError: Error: Invalid CSS after "a{☃": expected "{", was ""\n' ' on line 1:3 of stdin\n' '>> a{☃\n' ' --^\n\n', ) E assert False E + where False = ('CompileError: Error: Invalid CSS after "a{☃": expected "{", was ""\n on line 1:3 of stdin\n>> a{☃\n --^\n\n') E + where = 'Traceback (most recent call last):\n File "/builddir/build/BUILD/libsass-python-0.19.4/sasstests.py", line 1630, in ...ass.CompileError: Error: Invalid CSS after "a{☃": expected "{", was ""\n on line 1 of stdin\n>> a{☃\n --^\n\n'.endswith sasstests.py:1634: AssertionError =============================== warnings summary =============================== /usr/lib/python3.8/site-packages/werkzeug/datastructures.py:16 /usr/lib/python3.8/site-packages/werkzeug/datastructures.py:16 /usr/lib/python3.8/site-packages/werkzeug/datastructures.py:16 /usr/lib/python3.8/site-packages/werkzeug/datastructures.py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working from collections import Container, Iterable, MutableSet -- Docs: https://docs.pytest.org/en/latest/warnings.html ============== 8 failed, 100 passed, 3 warnings in 78.83 seconds =============== RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.AzzG0C (%check) Bad exit status from /var/tmp/rpm-tmp.AzzG0C (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-libsass.spec