Title: DeprecationWarning in test_enum · Issue #93216 · python/cpython · GitHub
Open Graph Title: DeprecationWarning in test_enum · Issue #93216 · python/cpython
X Title: DeprecationWarning in test_enum · Issue #93216 · python/cpython
Description: Bug report DeprecationWarning in test_enum due to changes in #25670 with tests being now ran on Python 3.12 ./python -Wall -m test test_enum 0:00:00 load avg: 1.01 Run tests sequentially 0:00:00 load avg: 1.01 [1/1] test_enum /home/karth...
Open Graph Description: Bug report DeprecationWarning in test_enum due to changes in #25670 with tests being now ran on Python 3.12 ./python -Wall -m test test_enum 0:00:00 load avg: 1.01 Run tests sequentially 0:00:00 lo...
X Description: Bug report DeprecationWarning in test_enum due to changes in #25670 with tests being now ran on Python 3.12 ./python -Wall -m test test_enum 0:00:00 load avg: 1.01 Run tests sequentially 0:00:00 lo...
Opengraph URL: https://github.com/python/cpython/issues/93216
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DeprecationWarning in test_enum","articleBody":"**Bug report**\r\n\r\nDeprecationWarning in test_enum due to changes in #25670 with tests being now ran on Python 3.12\r\n\r\n```\r\n./python -Wall -m test test_enum\r\n0:00:00 load avg: 1.01 Run tests sequentially\r\n0:00:00 load avg: 1.01 [1/1] test_enum\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:2967: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertFalse('BLACK' in Color)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n/home/karthikeyan/stuff/python/cpython/Lib/test/test_enum.py:374: DeprecationWarning: in 3.12 __contains__ will no longer raise TypeError, but will return True or\r\nFalse depending on whether the value is a member or the value of a member\r\n self.assertTrue(self.source_values[0] in MainEnum)\r\n\r\n== Tests result: SUCCESS ==\r\n\r\n1 test OK.\r\n\r\nTotal duration: 556 ms\r\nTests result: SUCCESS\r\n```\r\n\r\n**Your environment**\r\n\r\n- CPython versions tested on: Python 3.12.0a0 (heads/main:9485a0dbdd, May 25 2022, 17:36:25) [GCC 9.4.0] on linux\r\n- Operating system and architecture: Linux","author":{"url":"https://github.com/tirkarthi","@type":"Person","name":"tirkarthi"},"datePublished":"2022-05-25T12:14:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/93216/cpython/issues/93216"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:65d571a3-c193-fa10-09c7-a7500a3b170c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E64:1D195C:189F594:2115788:6969AD57 |
| html-safe-nonce | 2b1e0c6aed1428839be4a7e5a192ae65a247b71aa0ce1b404ba30e2d48f60174 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTY0OjFEMTk1QzoxODlGNTk0OjIxMTU3ODg6Njk2OUFENTciLCJ2aXNpdG9yX2lkIjoiNDk2MTk2NTM0MjE5NjM0NjE5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f3a3107c52928241aa0266e083f48848deac71c94c67cde950a5af3d325100b0 |
| hovercard-subject-tag | issue:1248007115 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/93216/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a0046361e4935e181b59f530a5df169ce315843784946b1c18c0ca93ae53511/python/cpython/issues/93216 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a0046361e4935e181b59f530a5df169ce315843784946b1c18c0ca93ae53511/python/cpython/issues/93216 |
| og:image:alt | Bug report DeprecationWarning in test_enum due to changes in #25670 with tests being now ran on Python 3.12 ./python -Wall -m test test_enum 0:00:00 load avg: 1.01 Run tests sequentially 0:00:00 lo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tirkarthi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width