fix PyQgsMemoryProvider test