facebook / facebook/TestSlide

Test failures with python 3.11+

オープン
#364 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
149
フォーク
62
PR マージ指標
30日以内にマージされた PR はありません

説明

**I'm using `TestSlide` version:** f22c1835f

**Given:** no changes

**When I run:** make

**I expected this to happen:** tests pass

**But, instead this happened:**

```
1) mock_constructor(), patching mechanism, original class attribute access: can call class methods
1) TypeError: Target.regular_class_method() missing 1 required positional argument: 'cls'
File "testslide/runner.py", line 837, in run
self._run_example(example)
File "testslide/runner.py", line 821, in _run_example
).run()
File "testslide/__init__.py", line 534, in run
self._sync_run_all_hooks_and_example(context_data)
File "testslide/__init__.py", line 506, in _sync_run_all_hooks_and_example
aggregated_exceptions.raise_correct_exception()
File "testslide/__init__.py", line 275, in raise_correct_exception
raise self.exceptions[0]
File "testslide/__init__.py", line 259, in catch
yield
File "testslide/__init__.py", line 497, in _sync_run_all_hooks_and_example
self._fail_if_coroutine_function(self.example.code, context_data)
File "testslide/__init__.py", line 465, in _fail_if_coroutine_function
return func(*args, **kwargs)
File "tests/mock_constructor_testslide.py", line 214, in can_call_class_methods
self.assertEqual(getattr(original_target_class, name)(), name)
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。