Skip to content

Commit

Permalink
Disable a ContextTest.test_contextvar_getitem.
Browse files Browse the repository at this point in the history
The behaviour for ContextVar[cls] changed in some minor patch release of 3.8 and 3.7, and we have too old versions on appveyor.
  • Loading branch information
jamadden committed Sep 22, 2020
1 parent b026147 commit 6fc3853
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/gevent/testing/patched_tests_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,14 @@ def get_switch_expected(fullname):
# and this doesn't work reliably on all versions.
'test_httplib.HeaderTests.test_headers_debuglevel',

# These depend on the exact error message produced by the interpreter
# when too many arguments are passed to functions. We can't match
# the exact signatures (because Python 2 doesn't support the syntax)
'test_context.ContextTest.test_context_new_1',
'test_context.ContextTest.test_context_var_new_1',
# On Appveyor with Python 3.8.0 and 3.7.5, this test
# for __class_getitem__ fails. Presumably this was added
# in a patch release (it's not in the PEP.) Sigh.
# https://bugs.python.org/issue38979
'test_context.ContextTest.test_contextvar_getitem',
# The same patch that fixed that removed this test,
# because it would now fail.
'test_context.ContextTest.test_context_var_new_2',
]

if OSX:
Expand Down

0 comments on commit 6fc3853

Please sign in to comment.