Skip to content

Commit

Permalink
Merge pull request #1194 from Axelrod-Python/fix-inconsistant-CI-again
Browse files Browse the repository at this point in the history
Add a matplotlibrc
  • Loading branch information
meatballs authored Aug 17, 2018
2 parents ab03629 + f3f06f3 commit 78c22f8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions axelrod/tests/unit/test_fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from unittest.mock import patch

import numpy as np

import matplotlib.pyplot
from hypothesis import given, settings

Expand Down
2 changes: 1 addition & 1 deletion axelrod/tests/unit/test_moran.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import unittest

from hypothesis import given, example, settings
import matplotlib

import matplotlib.pyplot as plt

import axelrod
Expand Down
10 changes: 4 additions & 6 deletions axelrod/tests/unit/test_plot.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import unittest
import axelrod

from numpy import mean
import tempfile
import unittest

import matplotlib
matplotlib.use("agg")

import matplotlib.pyplot as plt
from numpy import mean

import axelrod


class TestPlot(unittest.TestCase):
Expand Down
3 changes: 0 additions & 3 deletions doctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import unittest
import warnings

import matplotlib
matplotlib.use("agg")


# Note loader and ignore are required arguments for unittest even if unused.
def load_tests(loader, tests, ignore):
Expand Down
3 changes: 3 additions & 0 deletions matplotlibrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This is to ensure the matplotlib backend is set appropriately for CI
# See /~https://github.com/Axelrod-Python/Axelrod/issues/1187
backend : Agg

0 comments on commit 78c22f8

Please sign in to comment.