Created
July 4, 2012 16:48
-
-
Save hltbra/3048288 to your computer and use it in GitHub Desktop.
Should-DSL tests fail on Python2.7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ python run_all_examples.py | |
| /Users/hugo/github_projects/should-dsl/docs/available_matchers.rst | |
| Doctest: available_matchers.rst ... FAIL | |
| /Users/hugo/github_projects/should-dsl/docs/community.rst | |
| Doctest: community.rst ... ok | |
| /Users/hugo/github_projects/should-dsl/docs/contributing.rst | |
| Doctest: contributing.rst ... ok | |
| /Users/hugo/github_projects/should-dsl/docs/custom_matchers.rst | |
| Doctest: custom_matchers.rst ... ok | |
| /Users/hugo/github_projects/should-dsl/docs/download.rst | |
| Doctest: download.rst ... ok | |
| /Users/hugo/github_projects/should-dsl/docs/index.rst | |
| Doctest: index.rst ... ok | |
| /Users/hugo/github_projects/should-dsl/docs/license.rst | |
| Doctest: license.rst ... ok | |
| /Users/hugo/github_projects/should-dsl/docs/predicate_matchers.rst | |
| Doctest: predicate_matchers.rst ... ok | |
| /Users/hugo/github_projects/should-dsl/README.rst | |
| Doctest: README.rst ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/aliases.txt | |
| Doctest: aliases.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be.txt | |
| Doctest: be.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be_empty.txt | |
| Doctest: be_empty.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be_greater_than.txt | |
| Doctest: be_greater_than.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be_greater_than_or_equal_to.txt | |
| Doctest: be_greater_than_or_equal_to.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be_instance_of.txt | |
| Doctest: be_instance_of.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be_into.txt | |
| Doctest: be_into.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be_kind_of.txt | |
| Doctest: be_kind_of.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be_less_than.txt | |
| Doctest: be_less_than.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be_less_than_or_equal_to.txt | |
| Doctest: be_less_than_or_equal_to.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be_like.txt | |
| Doctest: be_like.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/be_thrown_by.txt | |
| Doctest: be_thrown_by.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/change.txt | |
| Doctest: change.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/close_to.txt | |
| Doctest: close_to.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/custom.txt | |
| Doctest: custom.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/deprecated.txt | |
| Doctest: deprecated.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/drop_deprecated_features.txt | |
| Doctest: drop_deprecated_features.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/end_with.txt | |
| Doctest: end_with.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/equal_to.txt | |
| Doctest: equal_to.txt ... FAIL | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/equal_to_ignoring_case.txt | |
| Doctest: equal_to_ignoring_case.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/have_at_least.txt | |
| Doctest: have_at_least.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/have_at_most.txt | |
| Doctest: have_at_most.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/have_collection_through.txt | |
| Doctest: have_collection_through.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/have_elements.txt | |
| Doctest: have_elements.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/have_elements_in_owned_collection.txt | |
| Doctest: have_elements_in_owned_collection.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/include.txt | |
| Doctest: include.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/include_all_of.txt | |
| Doctest: include_all_of.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/include_any_of.txt | |
| Doctest: include_any_of.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/include_in_any_order.txt | |
| Doctest: include_in_any_order.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/include_keys.txt | |
| Doctest: include_keys.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/include_values.txt | |
| Doctest: include_values.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/inject_negate_information.txt | |
| Doctest: inject_negate_information.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/matcher_classes.txt | |
| Doctest: matcher_classes.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/matchers_as_functions.txt | |
| Doctest: matchers_as_functions.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/predicate_matchers.txt | |
| Doctest: predicate_matchers.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/predicate_method_matchers.txt | |
| Doctest: predicate_method_matchers.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/respond_to.txt | |
| Doctest: respond_to.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/same_attribute_values.txt | |
| Doctest: same_attribute_values.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/start_with.txt | |
| Doctest: start_with.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/throw.txt | |
| Doctest: throw.txt ... ok | |
| /Users/hugo/github_projects/should-dsl/should_dsl/doctests/unittest_compliance.txt | |
| Doctest: unittest_compliance.txt ... ok | |
| ====================================================================== | |
| FAIL: /Users/hugo/github_projects/should-dsl/docs/available_matchers.rst | |
| Doctest: available_matchers.rst | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/doctest.py", line 2166, in runTest | |
| raise self.failureException(self.format_failure(new.getvalue())) | |
| AssertionError: Failed doctest test for available_matchers.rst | |
| File "/Users/hugo/github_projects/should-dsl/docs/available_matchers.rst", line 0 | |
| ---------------------------------------------------------------------- | |
| File "/Users/hugo/github_projects/should-dsl/docs/available_matchers.rst", line 258, in available_matchers.rst | |
| Failed example: | |
| 'big' |should| equal_to('big\nstring', diff=True) | |
| Expected: | |
| Traceback (most recent call last): | |
| ... | |
| ShouldNotSatisfied: the strings are different, see the diff below: | |
| --- actual | |
| +++ expected | |
| @@ -1,1 +1,2 @@ | |
| -big+big | |
| +string | |
| Got: | |
| Traceback (most recent call last): | |
| File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/doctest.py", line 1254, in __run | |
| compileflags, 1) in test.globs | |
| File "<doctest available_matchers.rst[71]>", line 1, in <module> | |
| 'big' |should| equal_to('big\nstring', diff=True) | |
| File "/Users/hugo/github_projects/should-dsl/should_dsl/dsl.py", line 30, in __or__ | |
| return self._check_expectation() | |
| File "/Users/hugo/github_projects/should-dsl/should_dsl/dsl.py", line 36, in _check_expectation | |
| self._rvalue.message_for_failed_should()) | |
| ShouldNotSatisfied: the strings are different, see the diff below: | |
| --- actual | |
| +++ expected | |
| @@ -1 +1,2 @@ | |
| -big+big | |
| +string | |
| ====================================================================== | |
| FAIL: /Users/hugo/github_projects/should-dsl/should_dsl/doctests/equal_to.txt | |
| Doctest: equal_to.txt | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/doctest.py", line 2166, in runTest | |
| raise self.failureException(self.format_failure(new.getvalue())) | |
| AssertionError: Failed doctest test for equal_to.txt | |
| File "/Users/hugo/github_projects/should-dsl/should_dsl/doctests/equal_to.txt", line 0 | |
| ---------------------------------------------------------------------- | |
| File "/Users/hugo/github_projects/should-dsl/should_dsl/doctests/equal_to.txt", line 20, in equal_to.txt | |
| Failed example: | |
| name |should| equal_to('dsl\ntest', diff=True) | |
| Expected: | |
| Traceback (most recent call last): | |
| ... | |
| ShouldNotSatisfied: the strings are different, see the diff below: | |
| --- actual | |
| +++ expected | |
| @@ -1,1 +1,2 @@ | |
| -dsl+dsl | |
| +test | |
| Got: | |
| Traceback (most recent call last): | |
| File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/doctest.py", line 1254, in __run | |
| compileflags, 1) in test.globs | |
| File "<doctest equal_to.txt[7]>", line 1, in <module> | |
| name |should| equal_to('dsl\ntest', diff=True) | |
| File "/Users/hugo/github_projects/should-dsl/should_dsl/dsl.py", line 30, in __or__ | |
| return self._check_expectation() | |
| File "/Users/hugo/github_projects/should-dsl/should_dsl/dsl.py", line 36, in _check_expectation | |
| self._rvalue.message_for_failed_should()) | |
| ShouldNotSatisfied: the strings are different, see the diff below: | |
| --- actual | |
| +++ expected | |
| @@ -1 +1,2 @@ | |
| -dsl+dsl | |
| +test | |
| ---------------------------------------------------------------------- | |
| File "/Users/hugo/github_projects/should-dsl/should_dsl/doctests/equal_to.txt", line 32, in equal_to.txt | |
| Failed example: | |
| 'CaSE' |should| equal_to('CasE\nInsensitive', diff=True, case_sensitive=False) | |
| Expected: | |
| Traceback (most recent call last): | |
| ... | |
| ShouldNotSatisfied: the strings are different, see the diff below: | |
| --- actual | |
| +++ expected | |
| @@ -1,1 +1,2 @@ | |
| -case+case | |
| +insensitive | |
| Got: | |
| Traceback (most recent call last): | |
| File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/doctest.py", line 1254, in __run | |
| compileflags, 1) in test.globs | |
| File "<doctest equal_to.txt[9]>", line 1, in <module> | |
| 'CaSE' |should| equal_to('CasE\nInsensitive', diff=True, case_sensitive=False) | |
| File "/Users/hugo/github_projects/should-dsl/should_dsl/dsl.py", line 30, in __or__ | |
| return self._check_expectation() | |
| File "/Users/hugo/github_projects/should-dsl/should_dsl/dsl.py", line 36, in _check_expectation | |
| self._rvalue.message_for_failed_should()) | |
| ShouldNotSatisfied: the strings are different, see the diff below: | |
| --- actual | |
| +++ expected | |
| @@ -1 +1,2 @@ | |
| -case+case | |
| +insensitive | |
| ---------------------------------------------------------------------- | |
| Ran 50 tests in 0.210s | |
| FAILED (failures=2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment