Avast testing,it dont pass!!

i was doing some scripts with python ,but i dont know it come to my mind that testing avast!
1.i restore a virus to c:
2.change avast settings to ask me what to do when a virus is detected
3.i wrote in the python editor"i use active python":
import shutil
shutil.copyfile(‘c:\115.exe’,‘d:\115.exe’)
4.avast warn me about the virus so i choose block the virus
5.the virus was in c"normal as i restore it to c"and in d"not normal coz avast block the operation"
6.any word
:‘( :’(

dont believe?!test it your self and see :wink:

I’m not completely sure what you’re trying to say, but I think you should check the settings of the File System Shield.

Executable files are not scanned “on read” by default, only “on execute” and “on close” - and scanning on close is done after the file is written to the target location, so if you choose block (and not e.g. delete), it will be there.
So yes, it’s normal.

but the read and write operation done perfectly so where is the blocking if the virus reach its place?!
edit:avast will delete or move to chest the python file not the virus file

Blocking “on close” doesn’t really do anything… what should it be, anyway?
I don’t really understand what you mean by moving the python file… can you maybe post some screenshots of the detections?

that is

and cuould you please tell me which Internet security suite does?

avast! doesn’t report Python to be infected - it only shows you what process made the request.
However, if you select “Move to Chest”, it will be the D:\115.exe file that will be moved… are you saying it’s not?