Skip to content

Commit

Permalink
Really fix tests this time
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainDe committed Mar 26, 2015
1 parent 719abe6 commit 5c45a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions didyoumean/didyoumean_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,13 +673,13 @@ def test_print(self):
def test_exec(self):
code = 'exec "some_python_code = 1"'
version = (3, 0)
self.code_runs(code, up_to_version(version))
self.code_throws(code, "", up_to_version(version)) # WHY ?
self.code_throws(code, "", from_version(version))

def test_old_comparison(self):
code = '1 <> 2'
version = (3, 0)
self.code_throws(code, "", up_to_version(version)) # WHY ?
self.code_runs(code, up_to_version(version))
self.code_throws(code, ". Did you mean '!='\?", from_version(version))


Expand Down

0 comments on commit 5c45a7a

Please sign in to comment.