Skip to content
  • Benjamin Schubert's avatar
    conftest.py: Ensure platform is not maintained between tests · cf2e0059
    Benjamin Schubert authored and Benjamin Schubert's avatar Benjamin Schubert committed
    This removes the `_instance` on the platform object that we use
    for caching and not recreating the object everytime at the start
    of every test.
    
    This is to ensure our tests share the least amount of state.
    
    The performance penalty is from 5 to 10% accross the whole test suite.
    The readings were done 5 times for each before and after the change
    and on the same computer.
    cf2e0059