diff options
author | Johan Dahlin <johan@src.gnome.org> | 2004-07-19 10:14:25 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2004-07-19 10:14:25 +0000 |
commit | b3de7e2666bd30cc9c3b54e21e6982636a2417f2 (patch) | |
tree | a383b84e7510db444203f704cda0d4dff82976c8 /tests | |
parent | e3f97359c6d0a7a2cd45b305d9a2396cf4a5a606 (diff) | |
download | pygtk-b3de7e2666bd30cc9c3b54e21e6982636a2417f2.tar.gz |
Remove, out of date since 0.6.x!
* description.py: Remove, out of date since 0.6.x!
* tests/Makefile.am, tests/common.py: Make distcheck pass
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 12 | ||||
-rw-r--r-- | tests/common.py | 9 | ||||
-rw-r--r-- | tests/enum.py | 1 |
3 files changed, 10 insertions, 12 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index c592b968..d7ef6018 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -3,8 +3,12 @@ tests = \ enum.py \ signal.py -check-local: - @PYTHONPATH=$(top_builddir):$(top_builddir)/.libs:$(top_builddir)/gtk/.libs $(PYTHON) $(srcdir)/runtests.py - @rm -fr *.pyc +PYTHONPATH = $(top_builddir):$(top_builddir)/gobject:$(top_srcdir):$(top_srcdir)/gtk -EXTRA_DIST = $(tests) runtests.py +check-local: $(top_srcdir)/gtk/__init__.py + @if ! test -e $(top_builddir)/gtk/__init__.py; then cp $(top_srcdir)/gtk/__init__.py $(top_builddir)/gtk/__init__.py; fi + @PYTHONPATH=$(PYTHONPATH) $(PYTHON) $(srcdir)/runtests.py + @if test "$(top_builddir)" != "$(top_srcdir)"; then rm -f $(top_builddir)/gtk/__init__.py*; fi + @rm -fr *.pyc + +EXTRA_DIST = $(tests) common.py runtests.py diff --git a/tests/common.py b/tests/common.py index d65fb3ba..b5eb7742 100644 --- a/tests/common.py +++ b/tests/common.py @@ -1,16 +1,11 @@ -import os -import sys - -# Don't insert before . (first in list) -sys.path.insert(1, os.path.join('../gobject/.libs')) -sys.path.insert(1, os.path.join('../gtk/.libs')) +import ltihooks import gobject import atk import pango + import gtk from gtk import gdk from gtk import glade -import ltihooks ltihooks.uninstall() diff --git a/tests/enum.py b/tests/enum.py index c1665a80..11b73ea5 100644 --- a/tests/enum.py +++ b/tests/enum.py @@ -24,7 +24,6 @@ class EnumTest(unittest.TestCase): assert atk.LAYER_INVALID != atk.LAYER_BACKGROUND def testWindowGetState(self): - # Usage through properties/external methods win = gtk.Window() win.realize() |