-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Description
Some files which are required for the tests seems to be missing.
+ pytest-3.7 -v tests/__init__.py tests/tests.py tests/tests_v2.py
/usr/lib/python3.7/site-packages/trio/_core/_multierror.py:450: RuntimeWarning: You seem to already have a custom sys.excepthook handler installed. I'll skip installing trio's custom handler, but this means MultiErrors will not show full tracebacks.
category=RuntimeWarning
Test session starts (platform: linux, Python 3.7.6, pytest 4.6.9, pytest-sugar 0.9.2)
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/fab/Documents/repos/rpmbuild/BUILD/python-javaobj-0.4.0.1/.hypothesis/examples')
rootdir: /home/fab/Documents/repos/rpmbuild/BUILD/python-javaobj-0.4.0.1
plugins: hypothesis-4.23.8, requests-mock-1.7.0, case-1.5.3, sugar-0.9.2, betamax-0.8.1, asyncio-0.10.0, toolbox-0.4, timeout-1.3.3, cov-2.8.1, isort-0.3.1, forked-1.0.2, aspectlib-1.4.2, mock-1.10.4, trio-0.5.2, flaky-3.5.3, django-3.7.0
collecting ...
tests/tests.py::TestJavaobjV1.test_arrays ✓ [...]
tests/tests.py::TestJavaobjV1.test_fields ✓ 22% ██▎
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― TestJavaobjV1.test_japan ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
self = <tests.tests.TestJavaobjV1 testMethod=test_japan>
def test_japan(self):
"""
Tests the UTF encoding handling with Japanese characters
"""
# Japan.ser contains a string using wide characters: the name of the
# state from Japan (according to wikipedia)
> jobj = self.read_file("testJapan.ser")
tests/tests.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.tests.TestJavaobjV1 testMethod=test_japan>, filename = 'testJapan.ser', stream = False
def read_file(self, filename, stream=False):
"""
Reads the content of the given file in binary mode
:param filename: Name of the file to read
:param stream: If True, return the file stream
:return: File content or stream
"""
for subfolder in ("java", ""):
found_file = os.path.join(
os.path.dirname(__file__), subfolder, filename
)
if os.path.exists(found_file):
break
else:
> raise IOError("File not found: {0}".format(filename))
E OSError: File not found: testJapan.ser
tests/tests.py:93: OSError
tests/tests.py::TestJavaobjV1.test_japan ⨯ 23% ██▍
tests/tests.py::TestJavaobjV1.test_jceks_issue_5 ✓ 25% ██▌
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― TestJavaobjV1.test_qistoph_pr_27 ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
self = <tests.tests.TestJavaobjV1 testMethod=test_qistoph_pr_27>
def test_qistoph_pr_27(self):
"""
Tests support for Bool, Integer, Long classes (PR #27)
"""
# Load the basic map
> jobj = self.read_file("testBoolIntLong.ser")
tests/tests.py:450:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.tests.TestJavaobjV1 testMethod=test_qistoph_pr_27>, filename = 'testBoolIntLong.ser', stream = False
def read_file(self, filename, stream=False):
"""
Reads the content of the given file in binary mode
:param filename: Name of the file to read
:param stream: If True, return the file stream
:return: File content or stream
"""
for subfolder in ("java", ""):
found_file = os.path.join(
os.path.dirname(__file__), subfolder, filename
)
if os.path.exists(found_file):
break
else:
> raise IOError("File not found: {0}".format(filename))
E OSError: File not found: testBoolIntLong.ser
[...]
if os.path.exists(found_file):
break
else:
> raise IOError("File not found: {0}".format(filename))
E OSError: File not found: testTime.ser
tests/tests_v2.py:93: OSError
tests/tests_v2.py::TestJavaobjV2.test_times ⨯ 100% ██████████
===Flaky Test Report===
===End Flaky Test Report===
Results (0.77s):
48 passed
12 failed
- tests/tests.py:297 TestJavaobjV1.test_japan
- tests/tests.py:445 TestJavaobjV1.test_qistoph_pr_27
- tests/tests.py:356 TestJavaobjV1.test_sets
- tests/tests.py:372 TestJavaobjV1.test_times
- tests/tests.py:297 TestJavaobjV1.test_japan
- tests/tests.py:445 TestJavaobjV1.test_qistoph_pr_27
- tests/tests.py:356 TestJavaobjV1.test_sets
- tests/tests.py:372 TestJavaobjV1.test_times
- tests/tests_v2.py:265 TestJavaobjV2.test_japan
- tests/tests_v2.py:402 TestJavaobjV2.test_qistoph_pr_27
- tests/tests_v2.py:320 TestJavaobjV2.test_sets
- tests/tests_v2.py:336 TestJavaobjV2.test_times
error: Bad exit status from /var/tmp/rpm-tmp.MCiDMl (%check)Metadata
Metadata
Assignees
Labels
No labels