
import os
os.environ["MPLBACKEND"] = 'agg'

import matplotlib
matplotlib.use('agg')

import pytest
import pytest_mpl.plugin
import oggm
import sys

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

initial_dir = os.getcwd()
oggm_file = os.path.abspath(oggm.__file__)
oggm_dir = os.path.dirname(oggm_file)

sys.exit(pytest.main([oggm_dir, '--mpl'], plugins=[pytest_mpl.plugin]))


import os
os.environ["MPLBACKEND"] = 'agg'

import matplotlib
matplotlib.use('agg')

import pytest
import oggm
import sys

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

initial_dir = os.getcwd()
oggm_file = os.path.abspath(oggm.__file__)
oggm_dir = os.path.dirname(oggm_file)

sys.exit(pytest.main([oggm_dir, '--mpl']))

Revert "Try to fix mpl invocation"
Revert "Try to fix mpl invocation"

This reverts commit c5f0e32eb12ae7809b9fde0371bfb73ec86d47a3.

  
  import os
  os.environ["MPLBACKEND"] = 'agg'
  
  import matplotlib
  matplotlib.use('agg')
  
  import pytest
- import pytest_mpl.plugin
  import oggm
  import sys
  
  import ssl
  ssl._create_default_https_context = ssl._create_unverified_context
  
  initial_dir = os.getcwd()
  oggm_file = os.path.abspath(oggm.__file__)
  oggm_dir = os.path.dirname(oggm_file)
  
- sys.exit(pytest.main([oggm_dir, '--mpl'], plugins=[pytest_mpl.plugin]))
+ sys.exit(pytest.main([oggm_dir, '--mpl']))
  
Revert "Try to fix mpl invocation"
## Code Before:

import os
os.environ["MPLBACKEND"] = 'agg'

import matplotlib
matplotlib.use('agg')

import pytest
import pytest_mpl.plugin
import oggm
import sys

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

initial_dir = os.getcwd()
oggm_file = os.path.abspath(oggm.__file__)
oggm_dir = os.path.dirname(oggm_file)

sys.exit(pytest.main([oggm_dir, '--mpl'], plugins=[pytest_mpl.plugin]))

## Instruction:
Revert "Try to fix mpl invocation"
## Code After:

import os
os.environ["MPLBACKEND"] = 'agg'

import matplotlib
matplotlib.use('agg')

import pytest
import oggm
import sys

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

initial_dir = os.getcwd()
oggm_file = os.path.abspath(oggm.__file__)
oggm_dir = os.path.dirname(oggm_file)

sys.exit(pytest.main([oggm_dir, '--mpl']))
