See <http://robot.radiaatto.ri.fi/hudson/job/RobotFramework%20Unit%20Tests/39/changes>
Changes: [Pekka Klärck] Automated merge with https://code.google.com/p/robotframework/ [Pekka Klärck] Refactoring how stuff gets imported to get cleaner code and to fix bugs. This is work-in-progress and there's also one test that is know to fail. Update issue 979 Status: Started Owner: pekka.klarck I looked at the importing related code and got annoyed how badly it was structured. I decided it's better to refactor the code, add unit tests, and at the same time fix the problems discusses in this issue. [Pekka Klärck] better method name [Pekka Klärck] html -> txt [Pekka Klärck] assert_raises returns exception [Pekka Klärck] cleanup [Pekka Klärck] coding standards ------------------------------------------ Started by an SCM change [workspace] $ hg incoming --quiet --bundle hg.bundle --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev default [workspace] $ hg unbundle hg.bundle adding changesets adding manifests adding file changes added 7 changesets with 18 changes to 15 files (run 'hg update' to get a working copy) [workspace] $ hg update --clean --rev default 15 files updated, 0 files merged, 2 files removed, 0 files unresolved [workspace] $ hg log --rev . --template {node} [workspace] $ /bin/bash -xe /tmp/hudson1428714424697431758.sh + python utest/run_utests.py .......................................................................................................................................................................................................................................................................................................................................................................................F................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ ====================================================================== FAIL: test_importing_same_file_reloads_module (test_importer_util.TestImportByPath) ---------------------------------------------------------------------- Traceback (most recent call last): File "<http://robot.radiaatto.ri.fi/hudson/job/RobotFramework%20Unit%20Tests/ws/utest/utils/test_importer_util.py",> line 53, in test_importing_same_file_reloads_module self._import_and_verify(path, attr=2) File "<http://robot.radiaatto.ri.fi/hudson/job/RobotFramework%20Unit%20Tests/ws/utest/utils/test_importer_util.py",> line 87, in _import_and_verify assert_equals(module.attr, attr) File "<http://robot.radiaatto.ri.fi/hudson/job/RobotFramework%20Unit%20Tests/ws/utest/../src/robot/utils/asserts.py",> line 181, in fail_unless_equal _report_unequality_failure(first, second, msg, values, '!=') File "<http://robot.radiaatto.ri.fi/hudson/job/RobotFramework%20Unit%20Tests/ws/utest/../src/robot/utils/asserts.py",> line 244, in _report_unequality_failure _report_failure(msg) File "<http://robot.radiaatto.ri.fi/hudson/job/RobotFramework%20Unit%20Tests/ws/utest/../src/robot/utils/asserts.py",> line 230, in _report_failure raise AssertionError(msg) AssertionError: 1 != 2 ---------------------------------------------------------------------- Ran 1080 tests in 2.251s FAILED (failures=1) Build step 'Execute shell' marked build as failure
