diff options
| author | Dan Schult <dschult@colgate.edu> | 2019-10-09 15:00:37 -0400 |
|---|---|---|
| committer | Jarrod Millman <jarrod.millman@gmail.com> | 2019-10-12 09:21:57 -0700 |
| commit | ecc8fcd1f2c8da30457082ba6ec6e64759ca174f (patch) | |
| tree | 29281002ac02eddfcd03ca54c52365427308034a /networkx/tests/test_convert_numpy.py | |
| parent | 373ae4fdffee233e5d59374114003f5238ab522f (diff) | |
| download | networkx-ecc8fcd1f2c8da30457082ba6ec6e64759ca174f.tar.gz | |
Fix some __init__ warnings
Diffstat (limited to 'networkx/tests/test_convert_numpy.py')
| -rw-r--r-- | networkx/tests/test_convert_numpy.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/networkx/tests/test_convert_numpy.py b/networkx/tests/test_convert_numpy.py index ea73ba43..8ecfcbcb 100644 --- a/networkx/tests/test_convert_numpy.py +++ b/networkx/tests/test_convert_numpy.py @@ -19,7 +19,7 @@ class TestConvertNumpy(object): except ImportError: raise SkipTest('NumPy not available.') - def __init__(self): + def setup_method(self): self.G1 = barbell_graph(10, 3) self.G2 = cycle_graph(10, create_using=nx.DiGraph) @@ -262,10 +262,9 @@ class TestConvertNumpyArray(object): except ImportError: raise SkipTest('NumPy not available.') - def __init__(self): + def setup_method(self): self.G1 = barbell_graph(10, 3) self.G2 = cycle_graph(10, create_using=nx.DiGraph) - self.G3 = self.create_weighted(nx.Graph()) self.G4 = self.create_weighted(nx.DiGraph()) |
