Skip to content

Test failure with Python 3.10 #153

Closed

Description

@fabaff

Issue Summary

With Python 3.10 I see a test failure.

============================= test session starts ==============================
platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /build/source
collected 13 items                                                             

tests/test_daterange.py F                                                [  7%]
tests/test_repofiles.py .                                                [ 15%]
tests/test_unit.py ...........                                           [100%]

=================================== FAILURES ===================================
________________________ DateRangeTest.test__daterange _________________________

self = <tests.test_daterange.DateRangeTest testMethod=test__daterange>

    def test__daterange(self):
>       self.assertIn(self.pattern, self.license_file)
E       AssertionError: 'Copyright (C) 2022, Twilio SendGrid, Inc.' not found in 'MIT License\n\nCopyright (C) 2021, Twilio SendGrid, Inc. <help@twilio.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the "Software"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n'

tests/test_daterange.py:19: AssertionError
=========================== short test summary info ============================
FAILED tests/test_daterange.py::DateRangeTest::test__daterange - AssertionErr...
========================= 1 failed, 12 passed in 0.35s =========================

Steps to Reproduce

Run tests

Code Snippet

n/a

Exception/Log

n/a

Technical details:

  • python-http-client version: 3.3.4
  • python version: 3.10.1

Activity

  1. fabaff commented on Jan 12, 2022

    @fabaff
    Author

    Related #152

  2. added
    status: waiting for feedback
    type: question
    on Jan 12, 2022
  3. JenniferMah commented on Jan 12, 2022

    @JenniferMah
    Contributor

    Hi @fabaff! Can you try updating to the latest version of the python-http-client (3.3.5)?

  4. fabaff commented on Jan 12, 2022

    @fabaff
    Author

    @JenniferMah, thanks a lot. Tests are all passing (NixOS/nixpkgs#154821).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: waiting for feedbacktype: question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions