summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Šplíchal <psplicha@redhat.com>2012-05-04 15:50:53 +0200
committerPetr Šplíchal <psplicha@redhat.com>2012-05-04 15:50:53 +0200
commite6517cbe4bbab302853a2b424380cf578f065119 (patch)
tree4bf4b397a956935f40cd0d9532ae10ece6a7ca0a
parentaf4ac6889b98feccdfeabd3d82fe8fa7e717be35 (diff)
downloadpython-nitrate-e6517cbe4bbab302853a2b424380cf578f065119.zip
python-nitrate-e6517cbe4bbab302853a2b424380cf578f065119.tar.gz
python-nitrate-e6517cbe4bbab302853a2b424380cf578f065119.tar.xz
Empty script or arguments to be handled same as None
-rw-r--r--source/api.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/api.py b/source/api.py
index 38993b5..38d37ee 100644
--- a/source/api.py
+++ b/source/api.py
@@ -2976,6 +2976,12 @@ class TestCase(Mutable):
else:
self._tester = None
+ # Empty script or arguments to be handled same as None
+ if self._script == "":
+ self._script = None
+ if self._arguments == "":
+ self._arguments = None
+
# Initialize containers
self._bugs = Bugs(self)
self._tags = CaseTags(self)