Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_ssl raises ResourceWarning (again) #110011

Open
sobolevn opened this issue Sep 28, 2023 · 0 comments
Open

test_ssl raises ResourceWarning (again) #110011

sobolevn opened this issue Sep 28, 2023 · 0 comments
Labels
tests Tests in the Lib/test dir topic-SSL type-bug An unexpected behavior, bug, or error

Comments

@sobolevn
Copy link
Member

sobolevn commented Sep 28, 2023

Bug report

One:

» ./python.exe -m test test_ssl -m test_preauth_data_to_tls_client
0:00:00 load avg: 1.42 Run 1 test sequentially
0:00:00 load avg: 1.42 [1/1] test_ssl
/Users/sobolev/Desktop/cpython/Lib/test/test_ssl.py:4862: ResourceWarning: unclosed <ssl.SSLSocket fd=8, family=2, type=1, proto=0, laddr=('127.0.0.1', 55685)>
  wrap_error = None
ResourceWarning: Enable tracemalloc to get the object allocation traceback

== Tests result: SUCCESS ==

1 test OK.

Total duration: 137 ms
Total tests: run=1 (filtered) skipped=1
Total test files: run=1/1 (filtered)
Result: SUCCESS

Two:

» ./python.exe -m test test_ssl -m test_preauth_data_to_tls_server
0:00:00 load avg: 1.53 Run 1 test sequentially
0:00:00 load avg: 1.53 [1/1] test_ssl
/Users/sobolev/Desktop/cpython/Lib/test/test_ssl.py:4801: ResourceWarning: unclosed <ssl.SSLSocket fd=9, family=2, type=1, proto=0, laddr=('127.0.0.1', 55718)>
  wrap_error = None
ResourceWarning: Enable tracemalloc to get the object allocation traceback

== Tests result: SUCCESS ==

1 test OK.

Total duration: 121 ms
Total tests: run=1 (filtered) skipped=1
Total test files: run=1/1 (filtered)
Result: SUCCESS

Three:

» ./python.exe -m test test_ssl -m test_https_client_non_tls_response_ignored    
0:00:00 load avg: 1.65 Run 1 test sequentially
0:00:00 load avg: 1.65 [1/1] test_ssl
/Users/sobolev/Desktop/cpython/Lib/traceback.py:244: ResourceWarning: unclosed <ssl.SSLSocket fd=8, family=2, type=1, proto=0, laddr=('127.0.0.1', 56190)>
  tb.tb_frame.clear()
ResourceWarning: Enable tracemalloc to get the object allocation traceback

== Tests result: SUCCESS ==

1 test OK.

Total duration: 80 ms
Total tests: run=1 (filtered)
Total test files: run=1/1 (filtered)
Result: SUCCESS

Env:

  • macos sonoma
  • main branch
test_ssl: testing with 'OpenSSL 3.1.2 1 Aug 2023' (3, 1, 0, 2, 0)
          under Mac ('14.0', ('', '', ''), 'arm64')
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000

Refs:

@sobolevn sobolevn added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir topic-SSL labels Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir topic-SSL type-bug An unexpected behavior, bug, or error
1 participant