Fix deprecation warnings in test_file.py
1 file changed