-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
In certain situations, this deprecation warning is logged:
python3.10/site-packages/smartsheet/session.py:37: DeprecationWarning: ssl.OP_NO_SSL*/ssl.OP_NO_TLS* options are deprecated
To Reproduce
I seem to mostly see it when running unit tests.
Steps to reproduce the behavior:
- Create a
test.pyfile:
import unittest
from smartsheet import Smartsheet
class TestSmartsheet(unittest.TestCase):
def test_sheet(self):
sheet = Smartsheet(access_token="*****")
if __name__ == "__main__":
unittest.main()- Run
python -m unittest test.py - See warning
Expected behavior
The recommendation seems to be to use either ssl.PROTOCOL_TLS_CLIENT or ssl.PROTOCOL_TLS_SERVER
Screenshots
If applicable, add screenshots to help explain your problem.
Reminder: do not include your API access token or confidential information with any screenshots
Environment (please complete the following information):
- OS: CentOS 7
- Smartsheet Python SDK Version 3.0.4
- Python Version 3.10.15
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working