From 5151db48b1debd484068079658d2c5793ba6f2b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Augusto?= Date: Mon, 6 Apr 2020 09:11:06 -0300 Subject: [PATCH] Converting to python 3 and making all tests pass. (#9) * Adding vscode dir with the config files. * make all tests pass. --- .gitignore | 1 + tests/testsignalman.py | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index ef27bf66..535678d7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ .project .idea .pydevproject +.vscode ## VCS /.bzr diff --git a/tests/testsignalman.py b/tests/testsignalman.py index 5c0806e7..7db6aed3 100755 --- a/tests/testsignalman.py +++ b/tests/testsignalman.py @@ -8,23 +8,23 @@ >>> signalman.new(widget, 'test1', handler) 1 >>> signalman.cnxids[widget].keys() -['test1'] +dict_keys(['test1']) >>> widget.signals.values() -['test1'] +dict_values(['test1']) >>> signalman.remove_widget(widget) ->>> signalman.cnxids.has_key(widget) +>>> widget in signalman.cnxids False >>> widget.signals.values() -[] +dict_values([]) >>> signalman.new(widget, 'test2', handler) 2 >>> signalman.new(widget, 'test3', handler) 3 >>> signalman.remove_signal(widget, 'test2') >>> signalman.cnxids[widget].keys() -['test3'] +dict_keys(['test3']) >>> widget.signals.values() -['test3'] +dict_values(['test3']) >>> signalman.remove_widget(widget) >>>