Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
pygobject
Commits
b322d6a1
Commit
b322d6a1
authored
Mar 21, 2012
by
Johan Dahlin
Committed by
Johan Dahlin
Mar 21, 2012
Browse files
Correct review comments from Martin
https://bugzilla.gnome.org/show_bug.cgi?id=672578
parent
c8bc6ae1
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/test_everything.py
View file @
b322d6a1
...
...
@@ -246,7 +246,7 @@ class TestCallbacks(unittest.TestCase):
"""
def
callback
():
x
=
1
/
0
print
x
self
.
fail
(
'unexpected surviving zero divsion:'
+
str
(
x
))
try
:
Everything
.
test_simple_callback
(
callback
)
...
...
@@ -260,7 +260,7 @@ class TestCallbacks(unittest.TestCase):
"""
def
badcallback
():
x
=
1
/
0
print
x
self
.
fail
(
'unexpected surviving zero divsion:'
+
str
(
x
))
def
callback
():
Everything
.
test_boolean
(
True
)
...
...
tests/test_pygtkcompat.py
View file @
b322d6a1
...
...
@@ -14,10 +14,28 @@ import gi.pygtkcompat
gi
.
pygtkcompat
.
enable
()
gi
.
pygtkcompat
.
enable_gtk
(
version
=
'3.0'
)
import
atk
import
pango
import
pangocairo
import
gtk
import
gtk.gdk
class
TestATKCompat
(
unittest
.
TestCase
):
def
testObject
(
self
):
self
.
failUnless
(
hasattr
(
atk
,
'Object'
))
class
TestPangoCompat
(
unittest
.
TestCase
):
def
testLayout
(
self
):
self
.
failUnless
(
hasattr
(
pango
,
'Layout'
))
class
TestPangoCairoCompat
(
unittest
.
TestCase
):
def
testErrorUnderlinePath
(
self
):
self
.
failUnless
(
hasattr
(
pangocairo
,
'error_underline_path'
))
class
TestGTKCompat
(
unittest
.
TestCase
):
def
testButtons
(
self
):
self
.
assertEquals
(
Gdk
.
_2BUTTON_PRESS
,
5
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment