Don't crash trying to create a Gdk.Cursor without a DISPLAY; enable more tests for Travis
This commit is contained in:
parent
4bb60a80e7
commit
ac530d8a34
@ -25,5 +25,5 @@ install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir -p /home/travis/.gramps/grampsdb/
|
- mkdir -p /home/travis/.gramps/grampsdb/
|
||||||
- DJANGO_SETTINGS_MODULE=gramps.webapp.settings nosetests3 --exclude=TestcaseGenerator --exclude=exportvcard_test --exclude=plugins --exclude=vcard --exclude=merge_ref_test --exclude=test_util_test --exclude=gramps.webapp --exclude=test2_exec_CLI --exclude=widgets --exclude=test3_files_in_import_dir --exclude=test_manual_run --exclude=gui gramps
|
- DJANGO_SETTINGS_MODULE=gramps.webapp.settings nosetests3 --exclude=TestcaseGenerator --exclude=exportvcard_test --exclude=plugins --exclude=vcard --exclude=merge_ref_test --exclude=test_util_test --exclude=test2_exec_CLI --exclude=test3_files_in_import_dir --exclude=test_manual_run gramps
|
||||||
|
|
||||||
|
@ -196,15 +196,24 @@ GRABBERS_SWITCH = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
# cursors
|
# cursors
|
||||||
|
try:
|
||||||
CURSOR_UPPER = Gdk.Cursor.new(Gdk.CursorType.TOP_SIDE)
|
CURSOR_UPPER = Gdk.Cursor.new(Gdk.CursorType.TOP_SIDE)
|
||||||
CURSOR_LOWER = Gdk.Cursor.new(Gdk.CursorType.BOTTOM_SIDE)
|
CURSOR_LOWER = Gdk.Cursor.new(Gdk.CursorType.BOTTOM_SIDE)
|
||||||
CURSOR_LEFT = Gdk.Cursor.new(Gdk.CursorType.LEFT_SIDE)
|
CURSOR_LEFT = Gdk.Cursor.new(Gdk.CursorType.LEFT_SIDE)
|
||||||
CURSOR_RIGHT = Gdk.Cursor.new(Gdk.CursorType.RIGHT_SIDE)
|
CURSOR_RIGHT = Gdk.Cursor.new(Gdk.CursorType.RIGHT_SIDE)
|
||||||
CURSOR_UPPER_LEFT = Gdk.Cursor.new(Gdk.CursorType.TOP_LEFT_CORNER)
|
CURSOR_UPPER_LEFT = Gdk.Cursor.new(Gdk.CursorType.TOP_LEFT_CORNER)
|
||||||
CURSOR_UPPER_RIGHT = Gdk.Cursor.new(Gdk.CursorType.TOP_RIGHT_CORNER)
|
CURSOR_UPPER_RIGHT = Gdk.Cursor.new(Gdk.CursorType.TOP_RIGHT_CORNER)
|
||||||
CURSOR_LOWER_LEFT = Gdk.Cursor.new(Gdk.CursorType.BOTTOM_LEFT_CORNER)
|
CURSOR_LOWER_LEFT = Gdk.Cursor.new(Gdk.CursorType.BOTTOM_LEFT_CORNER)
|
||||||
CURSOR_LOWER_RIGHT = Gdk.Cursor.new(Gdk.CursorType.BOTTOM_RIGHT_CORNER)
|
CURSOR_LOWER_RIGHT = Gdk.Cursor.new(Gdk.CursorType.BOTTOM_RIGHT_CORNER)
|
||||||
|
except:
|
||||||
|
CURSOR_UPPER = None
|
||||||
|
CURSOR_LOWER = None
|
||||||
|
CURSOR_LEFT = None
|
||||||
|
CURSOR_RIGHT = None
|
||||||
|
CURSOR_UPPER_LEFT = None
|
||||||
|
CURSOR_UPPER_RIGHT = None
|
||||||
|
CURSOR_LOWER_LEFT = None
|
||||||
|
CURSOR_LOWER_RIGHT = None
|
||||||
|
|
||||||
CURSORS = [None,
|
CURSORS = [None,
|
||||||
CURSOR_UPPER_LEFT,
|
CURSOR_UPPER_LEFT,
|
||||||
|
Loading…
Reference in New Issue
Block a user