# HG changeset patch
# User Andrey Skvortsov <andrej.skvortzov@gmail.com>
# Date 1505586126 -10800
# Node ID ff0c18be4a8be236dd7332cf1719921ce718d40e
# Parent  724722c03db437a9ac640159a26dbd74f983d98a
clean sys.argv, because if test is running from pytest
sys.argv contains string "pytest --timeout 0 ./tests/tools"
Beremiz application parses it and throws exception.

diff -r 724722c03db4 -r ff0c18be4a8b tests/tools/test_application.py
--- a/tests/tools/test_application.py	Sat Sep 16 21:19:19 2017 +0300
+++ b/tests/tools/test_application.py	Sat Sep 16 21:22:06 2017 +0300
@@ -148,6 +148,7 @@
 
     def testStartUp(self):
         """Checks whether the app starts and finishes correctly"""
+        sys.argv = [""]
         self.StartApp()
         self.FinishApp()