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

关于测试中删除索引导致无法正常运行的问题 #15

Closed
steinliber opened this issue May 16, 2017 · 1 comment
Closed

关于测试中删除索引导致无法正常运行的问题 #15

steinliber opened this issue May 16, 2017 · 1 comment

Comments

@steinliber
Copy link

在 django 运行测试时,因为数据库有可能会重新建,而删除旧的索引导致数据库异常,导致无法正常运行测试。
在源代码中,删除索引没有处理可能发生的异常
for index_name in to_delete_indexes: editor.execute(editor._delete_constraint_sql(editor.sql_delete_index, model, index_name))
我的想法是捕捉到对应的异常,给予相关有用的提醒。

@yjmade
Copy link
Owner

yjmade commented May 18, 2017

#16

@yjmade yjmade closed this as completed May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants