Browse Source

test upd

python3-testing-appstore
miili 4 years ago
parent
commit
5a6dfbc43a
  1. 2
      .travis.yml
  2. 6
      test/test_gui.py
  3. 2
      test/test_orthodrome.py

2
.travis.yml

@ -44,7 +44,7 @@ before_install:
- git clone https://github.com/pyrocko/fomosto-qseis
- cd fomosto-qseis; autoreconf -i; ./configure; make; export PATH=$PATH:`pwd`/src; cd ..
- git clone https://github.com/pyrocko/fomosto-qseis2d
- cd fomosto-qseis2d; autoreconf -i; ./configure; make; export PATH=$PATH:`pwd`/src; cd ..
- cd fomosto-qseis2d; autoreconf -i; ./configure; make; export PATH=$PATH:`pwd`/src/r:`pwd`/src/s; cd ..
- git clone https://github.com/pyrocko/fomosto-psgrn-pscmp
- cd fomosto-psgrn-pscmp; autoreconf -i; ./configure; make; export PATH=$PATH:`pwd`/src/psgrn:`pwd`/src/pscmp; cd ..
- git clone https://github.com/pyrocko/fomosto-qssp.git

6
test/test_gui.py

@ -4,14 +4,14 @@ try:
from PyQt4.QtTest import QTest
from PyQt4.QtCore import Qt
from PyQt4.QtGui import QStyleOptionSlider, QStyle
from pyrocko.snuffler import Snuffler, SnufflerWindow
from pyrocko import pile_viewer as pyrocko_pile_viewer
from pyrocko import gui_util, util, model
except ImportError:
pass
import common
from pyrocko.snuffler import Snuffler, SnufflerWindow
from pyrocko.pile import make_pile
from pyrocko import pile_viewer as pyrocko_pile_viewer
from pyrocko import gui_util, util, model
from pyrocko import config

2
test/test_orthodrome.py

@ -398,8 +398,8 @@ class OrthodromeTestCase(unittest.TestCase):
points_ip[ip*nip:(ip+1)*nip, 0] = lats
points_ip[ip*nip:(ip+1)*nip, 1] = lons
color = mpl_graph_color(i)
if plot:
color = mpl_graph_color(i)
axes.add_patch(
Polygon(
num.fliplr(points_ip),

Loading…
Cancel
Save