Skip to content

Commit 6e75c4e

Browse files
remove redundant annotations
1 parent 849f6ea commit 6e75c4e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/utils/test_config.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
import pytest
66
import yaml
77

8-
# 假设你的回调类在这个路径下
98
from ppsci.utils.callbacks import InitCallback
109

11-
# 设置 Paddle 的 seed
1210
paddle.seed(1024)
1311

14-
# 测试函数不需要装饰器
12+
1513
@pytest.mark.parametrize(
1614
"epochs,mode,seed",
1715
[
@@ -46,6 +44,5 @@ def test_invalid_epochs(tmpdir, epochs, mode, seed):
4644
assert exec_info.value.code == 2
4745

4846

49-
# 这部分通常不需要,除非你想直接从脚本运行测试
5047
if __name__ == "__main__":
5148
pytest.main()

0 commit comments

Comments
 (0)