You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix>
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
Pytest shows as well many warnings.
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyu2f-0.1.5-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyu2f-0.1.5-2.fc35.x86_64/usr/lib/python3.8/site-packages+ /usr/bin/pytest -ra -m 'not network'==================================================================================== test session starts ====================================================================================platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0rootdir: /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5plugins: pyfakefs-5.1.0collected 63 itemspyu2f/tests/apdu_test.py ......... [ 14%]pyu2f/tests/customauthenticator_test.py ....... [ 25%]pyu2f/tests/hardware_test.py ........... [ 42%]pyu2f/tests/hidtransport_test.py .......... [ 58%]pyu2f/tests/localauthenticator_test.py ... [ 63%]pyu2f/tests/model_test.py ... [ 68%]pyu2f/tests/u2f_test.py ........... [ 85%]pyu2f/tests/util_test.py ... [ 90%]pyu2f/tests/hid/linux_test.py FF [ 93%]pyu2f/tests/hid/macos_test.py .... [100%]========================================================================================= FAILURES ==========================================================================================________________________________________________________________________________ LinuxTest.testCallEnumerate ________________________________________________________________________________self = <linux_test.LinuxTest testMethod=testCallEnumerate> def setUp(self): self.fs = fake_filesystem.FakeFilesystem()
> self.fs.CreateDirectory('/sys/class/hidraw')E AttributeError: 'FakeFilesystem' object has no attribute 'CreateDirectory'pyu2f/tests/hid/linux_test.py:82: AttributeError__________________________________________________________________________________ LinuxTest.testCallOpen ___________________________________________________________________________________self = <linux_test.LinuxTest testMethod=testCallOpen> def setUp(self): self.fs = fake_filesystem.FakeFilesystem()
> self.fs.CreateDirectory('/sys/class/hidraw')E AttributeError: 'FakeFilesystem' object has no attribute 'CreateDirectory'pyu2f/tests/hid/linux_test.py:82: AttributeError===================================================================================== warnings summary ======================================================================================pyu2f/hid/macos.py:177 /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/hid/macos.py:177: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logger.warn('Not running on MacOS')pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testPluginReturnsTouchRequired /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:326: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.code, errors.U2FError.TIMEOUT)pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testPluginReturnsWrongData /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:372: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.code, errors.U2FError.DEVICE_INELIGIBLE)pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:125: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(communicate_args), 1,pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:132: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(communicate_json), communicate_json_len,pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:137: DeprecationWarning: Please use assertEqual instead. self.assertEquals(communicate_dict.get('type'), 'sign_helper_request')pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:138: DeprecationWarning: Please use assertEqual instead. self.assertEquals(communicate_dict.get('timeoutSeconds'), 5)pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:139: DeprecationWarning: Please use assertEqual instead. self.assertEquals(communicate_dict.get('localAlways'), True)pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:144: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(challenges), 1)pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:146: DeprecationWarning: Please use assertEqual instead. self.assertEquals(challenge.get('appIdHash'),pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:148: DeprecationWarning: Please use assertEqual instead. self.assertEquals(challenge.get('challengeHash'),pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:150: DeprecationWarning: Please use assertEqual instead. self.assertEquals(challenge.get('keyHandle'),pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:152: DeprecationWarning: Please use assertEqual instead. self.assertEquals(challenge.get('version'),pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:158: DeprecationWarning: Please use assertEqual instead. self.assertEquals(result['applicationId'], SIGN_SUCCESS['app_id'])pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:159: DeprecationWarning: Please use assertEqual instead. self.assertEquals(result['clientData'], SIGN_SUCCESS['client_data_encoded'])pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:160: DeprecationWarning: Please use assertEqual instead. self.assertEquals(result['keyHandle'], SIGN_SUCCESS['key_handle_encoded'])pyu2f/tests/customauthenticator_test.py::CustomAuthenticatorTest::testSuccessAuthenticate /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/customauthenticator_test.py:161: DeprecationWarning: Please use assertEqual instead. self.assertEquals(result['signatureData'],pyu2f/tests/hardware_test.py::HardwareTest::testAuthenticateCheckOnly /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:160: DeprecationWarning: Please use assertEqual instead. self.assertEquals(reply, bytearray([0x01, 0x02]))pyu2f/tests/hardware_test.py::HardwareTest::testAuthenticateCheckOnly /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:161: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_transport.SendMsgBytes.call_count, 1)pyu2f/tests/hardware_test.py::HardwareTest::testAuthenticateCheckOnly /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:163: DeprecationWarning: Please use assertEqual instead. self.assertEquals(sent_msg[0:4], bytearray([0x00, 0x02, 0x07, 0x00]))pyu2f/tests/hardware_test.py::HardwareTest::testAuthenticateCheckOnly /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:164: DeprecationWarning: Please use assertEqual instead. self.assertEquals(pyu2f/tests/hardware_test.py::HardwareTest::testAuthenticateInvalidKeyHandle /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:194: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_transport.SendMsgBytes.call_count, 1)pyu2f/tests/hardware_test.py::HardwareTest::testAuthenticateSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:137: DeprecationWarning: Please use assertEqual instead. self.assertEquals(reply, bytearray([0x01, 0x02]))pyu2f/tests/hardware_test.py::HardwareTest::testAuthenticateSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:138: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_transport.SendMsgBytes.call_count, 1)pyu2f/tests/hardware_test.py::HardwareTest::testAuthenticateSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:140: DeprecationWarning: Please use assertEqual instead. self.assertEquals(sent_msg[0:4], bytearray([0x00, 0x02, 0x03, 0x00]))pyu2f/tests/hardware_test.py::HardwareTest::testAuthenticateSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:141: DeprecationWarning: Please use assertEqual instead. self.assertEquals(pyu2f/tests/hardware_test.py::HardwareTest::testAuthenticateTUPRequired /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:180: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_transport.SendMsgBytes.call_count, 1)pyu2f/tests/hardware_test.py::HardwareTest::testRegisterSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:63: DeprecationWarning: Please use assertEqual instead. self.assertEquals(reply, bytearray([0x01, 0x02]))pyu2f/tests/hardware_test.py::HardwareTest::testRegisterSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:64: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_transport.SendMsgBytes.call_count, 1)pyu2f/tests/hardware_test.py::HardwareTest::testRegisterSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:66: DeprecationWarning: Please use assertEqual instead. self.assertEquals(sent_msg[0:4], bytearray([0x00, 0x01, 0x03, 0x00]))pyu2f/tests/hardware_test.py::HardwareTest::testRegisterSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:67: DeprecationWarning: Please use assertEqual instead. self.assertEquals(sent_msg[7:-2], bytearray(challenge_param + app_param))pyu2f/tests/hardware_test.py::HardwareTest::testRegisterTUPRequired /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:80: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_transport.SendMsgBytes.call_count, 1)pyu2f/tests/hardware_test.py::HardwareTest::testVersion /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:89: DeprecationWarning: Please use assertEqual instead. self.assertEquals(reply, bytearray(b'U2F_V2'))pyu2f/tests/hardware_test.py::HardwareTest::testVersion /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:90: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_transport.SendMsgBytes.call_count, 1)pyu2f/tests/hardware_test.py::HardwareTest::testVersion /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:92: DeprecationWarning: Please use assertEqual instead. self.assertEquals(sent_msg, bytearray(pyu2f/tests/hardware_test.py::HardwareTest::testVersionErrors /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:123: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_transport.SendMsgBytes.call_count, 1)pyu2f/tests/hardware_test.py::HardwareTest::testVersionFallback /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:104: DeprecationWarning: Please use assertEqual instead. self.assertEquals(reply, bytearray(b'U2F_V2'))pyu2f/tests/hardware_test.py::HardwareTest::testVersionFallback /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:105: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_transport.SendMsgBytes.call_count, 2)pyu2f/tests/hardware_test.py::HardwareTest::testVersionFallback /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:107: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(sent_msg), 7)pyu2f/tests/hardware_test.py::HardwareTest::testVersionFallback /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:108: DeprecationWarning: Please use assertEqual instead. self.assertEquals(sent_msg[0:4], bytearray([0x00, 0x03, 0x00, 0x00]))pyu2f/tests/hardware_test.py::HardwareTest::testVersionFallback /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:109: DeprecationWarning: Please use assertEqual instead. self.assertEquals(sent_msg[4:7], bytearray([0x00, 0x00, 0x00])) # Lepyu2f/tests/hardware_test.py::HardwareTest::testVersionFallback /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:111: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(sent_msg), 9)pyu2f/tests/hardware_test.py::HardwareTest::testVersionFallback /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:112: DeprecationWarning: Please use assertEqual instead. self.assertEquals(sent_msg[0:4], bytearray([0x00, 0x03, 0x00, 0x00]))pyu2f/tests/hardware_test.py::HardwareTest::testVersionFallback /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:113: DeprecationWarning: Please use assertEqual instead. self.assertEquals(sent_msg[4:7], bytearray([0x00, 0x00, 0x00])) # Lcpyu2f/tests/hardware_test.py::HardwareTest::testVersionFallback /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hardware_test.py:114: DeprecationWarning: Please use assertEqual instead. self.assertEquals(sent_msg[7:9], bytearray([0x00, 0x00])) # Lepyu2f/tests/hidtransport_test.py::DiscoveryTest::testDiscoverLocalDevices /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:92: DeprecationWarning: Please use assertEqual instead. self.assertEquals(hid_mock.Enumerate.call_count, 1)pyu2f/tests/hidtransport_test.py::DiscoveryTest::testDiscoverLocalDevices /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:93: DeprecationWarning: Please use assertEqual instead. self.assertEquals(hid_mock.Open.call_count, 2)pyu2f/tests/hidtransport_test.py::DiscoveryTest::testDiscoverLocalDevices /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:94: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(devs), 2)pyu2f/tests/hidtransport_test.py::DiscoveryTest::testDiscoverLocalDevices /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:96: DeprecationWarning: Please use assertEqual instead. self.assertEquals(devs[0].hid_device.path, 'path3')pyu2f/tests/hidtransport_test.py::DiscoveryTest::testDiscoverLocalDevices /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:97: DeprecationWarning: Please use assertEqual instead. self.assertEquals(devs[1].hid_device.path, 'path4')pyu2f/tests/hidtransport_test.py::TransportTest::testContPacketShape /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:177: DeprecationWarning: Please use assertEqual instead. self.assertEquals(packet.ToWireFormat(), RPad([0, 0, 0, 1, 5, 1, 2], 64))pyu2f/tests/hidtransport_test.py::TransportTest::testContPacketShape /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:181: DeprecationWarning: Please use assertEqual instead. self.assertEquals(copy.cid, bytearray(b'\x00\x00\x00\x01'))pyu2f/tests/hidtransport_test.py::TransportTest::testContPacketShape /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:182: DeprecationWarning: Please use assertEqual instead. self.assertEquals(copy.seq, 5)pyu2f/tests/hidtransport_test.py::TransportTest::testContPacketShape /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:183: DeprecationWarning: Please use assertEqual instead. self.assertEquals(copy.payload, RPad(bytearray(b'\x01\x02'), 59))pyu2f/tests/hidtransport_test.py::TransportTest::testFragmentedResponseMsg /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:145: DeprecationWarning: Please use assertEqual instead. self.assertEquals(reply, bytearray(x % 256 for x in range(0, 1000)))pyu2f/tests/hidtransport_test.py::TransportTest::testFragmentedSendApdu /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:154: DeprecationWarning: Please use assertEqual instead. self.assertEquals(reply, bytearray([0x90, 0x00]))pyu2f/tests/hidtransport_test.py::TransportTest::testFragmentedSendApdu /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:157: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(fake_hid_dev.received_packets), 18)pyu2f/tests/hidtransport_test.py::TransportTest::testInit /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:105: DeprecationWarning: Please use assertEqual instead. self.assertEquals(t.cid, bytearray([0x00, 0x00, 0x00, 0x01]))pyu2f/tests/hidtransport_test.py::TransportTest::testInit /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:106: DeprecationWarning: Please use assertEqual instead. self.assertEquals(t.u2fhid_version, 0x01)pyu2f/tests/hidtransport_test.py::TransportTest::testInitPacketShape /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:163: DeprecationWarning: Please use assertEqual instead. self.assertEquals(packet.ToWireFormat(), RPad(pyu2f/tests/hidtransport_test.py::TransportTest::testInitPacketShape /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:168: DeprecationWarning: Please use assertEqual instead. self.assertEquals(copy.cid, bytearray(b'\x00\x00\x00\x01'))pyu2f/tests/hidtransport_test.py::TransportTest::testInitPacketShape /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:169: DeprecationWarning: Please use assertEqual instead. self.assertEquals(copy.cmd, 0x83)pyu2f/tests/hidtransport_test.py::TransportTest::testInitPacketShape /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:170: DeprecationWarning: Please use assertEqual instead. self.assertEquals(copy.size, 2)pyu2f/tests/hidtransport_test.py::TransportTest::testInitPacketShape /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:171: DeprecationWarning: Please use assertEqual instead. self.assertEquals(copy.payload, bytearray(b'\x01\x02'))pyu2f/tests/hidtransport_test.py::TransportTest::testMsg /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:121: DeprecationWarning: Please use assertEqual instead. self.assertEquals(reply, bytearray([0x01, 0x90, 0x00]))pyu2f/tests/hidtransport_test.py::TransportTest::testMsgBusy /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:132: DeprecationWarning: Please use assertRaisesRegex instead. self.assertRaisesRegexp(errors.HidError, '^Device Busy', t.SendMsgBytes,pyu2f/tests/hidtransport_test.py::TransportTest::testMsgBusy /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:136: DeprecationWarning: Please use assertEqual instead. self.assertEquals(reply, bytearray([0x01, 0x90, 0x00]))pyu2f/tests/hidtransport_test.py::TransportTest::testPing /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hidtransport_test.py:113: DeprecationWarning: Please use assertEqual instead. self.assertEquals(reply, b'1234')pyu2f/tests/localauthenticator_test.py::LocalAuthenticatorTest::testSignMultipleIneligible /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/localauthenticator_test.py:128: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.code, errors.U2FError.DEVICE_INELIGIBLE)pyu2f/tests/localauthenticator_test.py::LocalAuthenticatorTest::testSignMultipleSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/localauthenticator_test.py:171: DeprecationWarning: Please use assertEqual instead. self.assertEquals(response.get('clientData'),pyu2f/tests/localauthenticator_test.py::LocalAuthenticatorTest::testSignMultipleSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/localauthenticator_test.py:173: DeprecationWarning: Please use assertEqual instead. self.assertEquals(response.get('signatureData'),pyu2f/tests/localauthenticator_test.py::LocalAuthenticatorTest::testSignMultipleSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/localauthenticator_test.py:175: DeprecationWarning: Please use assertEqual instead. self.assertEquals(response.get('applicationId'),pyu2f/tests/localauthenticator_test.py::LocalAuthenticatorTest::testSignMultipleSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/localauthenticator_test.py:177: DeprecationWarning: Please use assertEqual instead. self.assertEquals(response.get('keyHandle'),pyu2f/tests/localauthenticator_test.py::LocalAuthenticatorTest::testSignSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/localauthenticator_test.py:95: DeprecationWarning: Please use assertEqual instead. self.assertEquals(response.get('clientData'),pyu2f/tests/localauthenticator_test.py::LocalAuthenticatorTest::testSignSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/localauthenticator_test.py:97: DeprecationWarning: Please use assertEqual instead. self.assertEquals(response.get('signatureData'),pyu2f/tests/localauthenticator_test.py::LocalAuthenticatorTest::testSignSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/localauthenticator_test.py:99: DeprecationWarning: Please use assertEqual instead. self.assertEquals(response.get('applicationId'),pyu2f/tests/localauthenticator_test.py::LocalAuthenticatorTest::testSignSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/localauthenticator_test.py:101: DeprecationWarning: Please use assertEqual instead. self.assertEquals(response.get('keyHandle'),pyu2f/tests/model_test.py::ModelTest::testClientDataAuth /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/model_test.py:44: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(list(obj.keys())), 3)pyu2f/tests/model_test.py::ModelTest::testClientDataAuth /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/model_test.py:45: DeprecationWarning: Please use assertEqual instead. self.assertEquals(obj['typ'], model.ClientData.TYP_AUTHENTICATION)pyu2f/tests/model_test.py::ModelTest::testClientDataAuth /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/model_test.py:46: DeprecationWarning: Please use assertEqual instead. self.assertEquals(obj['challenge'], 'QUJDRA')pyu2f/tests/model_test.py::ModelTest::testClientDataAuth /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/model_test.py:47: DeprecationWarning: Please use assertEqual instead. self.assertEquals(obj['origin'], 'somemachine')pyu2f/tests/model_test.py::ModelTest::testClientDataRegistration /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/model_test.py:35: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(list(obj.keys())), 3)pyu2f/tests/model_test.py::ModelTest::testClientDataRegistration /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/model_test.py:36: DeprecationWarning: Please use assertEqual instead. self.assertEquals(obj['typ'], model.ClientData.TYP_REGISTRATION)pyu2f/tests/model_test.py::ModelTest::testClientDataRegistration /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/model_test.py:37: DeprecationWarning: Please use assertEqual instead. self.assertEquals(obj['challenge'], 'QUJDRA')pyu2f/tests/model_test.py::ModelTest::testClientDataRegistration /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/model_test.py:38: DeprecationWarning: Please use assertEqual instead. self.assertEquals(obj['origin'], 'somemachine')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateAllKeysInvalid /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:190: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.code, errors.U2FError.DEVICE_INELIGIBLE)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateError /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:202: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.code, errors.U2FError.BAD_REQUEST)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateError /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:203: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.cause.sw1, 0xff)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateError /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:204: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.cause.sw2, 0xff)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateError /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:206: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdAuthenticate.call_count, 1)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateError /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:207: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdWink.call_count, 0)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidKey /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:140: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdAuthenticate.call_count, 2)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidKey /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:141: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdWink.call_count, 0)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidKey /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:142: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.key_handle, 'khB')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidKey /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:143: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.client_data.raw_server_challenge, b'ABCD')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidKey /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:144: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.client_data.typ, 'navigator.id.getAssertion')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidKey /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:145: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.signature_data, 'signature')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidVersion /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:159: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdAuthenticate.call_count, 1)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidVersion /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:160: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdWink.call_count, 0)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidVersion /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:161: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.key_handle, 'khB')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidVersion /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:162: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.client_data.raw_server_challenge, b'ABCD')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidVersion /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:163: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.client_data.typ, 'navigator.id.getAssertion')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessSkipInvalidVersion /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:164: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.signature_data, 'signature')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:122: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdAuthenticate.call_count, 2)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:123: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdWink.call_count, 1)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:124: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.key_handle, 'khA')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:125: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.client_data.raw_server_challenge, b'ABCD')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:126: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.client_data.typ, 'navigator.id.getAssertion')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:127: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.signature_data, 'signature')pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateTimeout /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:176: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.code, errors.U2FError.TIMEOUT)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateTimeout /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:177: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdAuthenticate.call_count, 30)pyu2f/tests/u2f_test.py::U2fTest::testAuthenticateTimeout /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:178: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdWink.call_count, 30)pyu2f/tests/u2f_test.py::U2fTest::testRegisterError /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:106: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.code, errors.U2FError.BAD_REQUEST)pyu2f/tests/u2f_test.py::U2fTest::testRegisterError /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:107: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.cause.sw1, 0xff)pyu2f/tests/u2f_test.py::U2fTest::testRegisterError /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:108: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.cause.sw2, 0xff)pyu2f/tests/u2f_test.py::U2fTest::testRegisterError /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:110: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdRegister.call_count, 1)pyu2f/tests/u2f_test.py::U2fTest::testRegisterError /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:111: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdWink.call_count, 0)pyu2f/tests/u2f_test.py::U2fTest::testRegisterFailAlreadyRegistered /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:75: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.code, errors.U2FError.DEVICE_INELIGIBLE)pyu2f/tests/u2f_test.py::U2fTest::testRegisterFailAlreadyRegistered /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:77: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdAuthenticate.call_count, 1)pyu2f/tests/u2f_test.py::U2fTest::testRegisterFailAlreadyRegistered /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:81: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdRegister.call_count, 0)pyu2f/tests/u2f_test.py::U2fTest::testRegisterFailAlreadyRegistered /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:82: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdWink.call_count, 0)pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithPreviousKeys /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:56: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdAuthenticate.call_count, 1)pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithPreviousKeys /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:60: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdRegister.call_count, 2)pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithPreviousKeys /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:61: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdWink.call_count, 1)pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithPreviousKeys /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:62: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.client_data.raw_server_challenge, b'ABCD')pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithPreviousKeys /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:63: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.client_data.typ, 'navigator.id.finishEnrollment')pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithPreviousKeys /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:64: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.registration_data, 'regdata')pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:41: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdRegister.call_count, 2)pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:42: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdWink.call_count, 1)pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:43: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.client_data.raw_server_challenge, b'ABCD')pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:44: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.client_data.typ, 'navigator.id.finishEnrollment')pyu2f/tests/u2f_test.py::U2fTest::testRegisterSuccessWithTUP /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:45: DeprecationWarning: Please use assertEqual instead. self.assertEquals(resp.registration_data, 'regdata')pyu2f/tests/u2f_test.py::U2fTest::testRegisterTimeout /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:94: DeprecationWarning: Please use assertEqual instead. self.assertEquals(cm.exception.code, errors.U2FError.TIMEOUT)pyu2f/tests/u2f_test.py::U2fTest::testRegisterTimeout /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:95: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdRegister.call_count, 30)pyu2f/tests/u2f_test.py::U2fTest::testRegisterTimeout /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/u2f_test.py:96: DeprecationWarning: Please use assertEqual instead. self.assertEquals(mock_sk.CmdWink.call_count, 30)pyu2f/tests/util_test.py::UtilTest::testErrorBusy /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/util_test.py:41: DeprecationWarning: Please use assertEqual instead. self.assertEquals(pyu2f/tests/util_test.py::UtilTest::testErrorBusy /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/util_test.py:44: DeprecationWarning: Please use assertEqual instead. self.assertEquals(pyu2f/tests/util_test.py::UtilTest::testErrorBusy /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/util_test.py:47: DeprecationWarning: Please use assertEqual instead. self.assertEquals(pyu2f/tests/util_test.py::UtilTest::testFragmentedApdu /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/util_test.py:56: DeprecationWarning: Please use assertEqual instead. self.assertEquals(pyu2f/tests/util_test.py::UtilTest::testFragmentedApdu /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/util_test.py:58: DeprecationWarning: Please use assertEqual instead. self.assertEquals(pyu2f/tests/util_test.py::UtilTest::testSimplePing /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/util_test.py:33: DeprecationWarning: Please use assertEqual instead. self.assertEquals(pyu2f/tests/hid/macos_test.py::MacOsTest::testCallReadSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hid/macos_test.py:134: DeprecationWarning: Please use assertEqual instead. self.assertEquals(read_result, list(range(64)), 'Read data should match 'pyu2f/tests/hid/macos_test.py::MacOsTest::testCallWriteSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hid/macos_test.py:84: DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(set_report_call_pos_args), 5)pyu2f/tests/hid/macos_test.py::MacOsTest::testCallWriteSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hid/macos_test.py:85: DeprecationWarning: Please use assertEqual instead. self.assertEquals(set_report_call_pos_args[0], 'handle')pyu2f/tests/hid/macos_test.py::MacOsTest::testCallWriteSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hid/macos_test.py:86: DeprecationWarning: Please use assertEqual instead. self.assertEquals(set_report_call_pos_args[1], 1)pyu2f/tests/hid/macos_test.py::MacOsTest::testCallWriteSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hid/macos_test.py:87: DeprecationWarning: Please use assertEqual instead. self.assertEquals(set_report_call_pos_args[2], 0)pyu2f/tests/hid/macos_test.py::MacOsTest::testCallWriteSuccess /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hid/macos_test.py:88: DeprecationWarning: Please use assertEqual instead. self.assertEquals(set_report_call_pos_args[4], 64)pyu2f/tests/hid/macos_test.py::MacOsTest::testInitHidDevice /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hid/macos_test.py:60: DeprecationWarning: Please use assertEqual instead. self.assertEquals(64, device.GetInReportDataLength())pyu2f/tests/hid/macos_test.py::MacOsTest::testInitHidDevice /home/tkloczko/rpmbuild/BUILD/pyu2f-0.1.5/pyu2f/tests/hid/macos_test.py:61: DeprecationWarning: Please use assertEqual instead. self.assertEquals(64, device.GetOutReportDataLength())-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html================================================================================== short test summary info ==================================================================================FAILED pyu2f/tests/hid/linux_test.py::LinuxTest::testCallEnumerate - AttributeError: 'FakeFilesystem' object has no attribute 'CreateDirectory'FAILED pyu2f/tests/hid/linux_test.py::LinuxTest::testCallOpen - AttributeError: 'FakeFilesystem' object has no attribute 'CreateDirectory'======================================================================== 2 failed, 61 passed, 149 warnings in 1.81s =========================================================================
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Pytest shows as well many warnings.
Here is pytest output:
Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: