Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make test Py3-compatible
  • Loading branch information
inducer committed Nov 27, 2013
1 parent 8094ff4 commit 57cb56e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_identical_symbols.py
Expand Up @@ -14,12 +14,13 @@ def make_greet_mod(greeting):
from codepy.toolchain import guess_toolchain
return mod.compile(guess_toolchain(), wait_on_error=True)


def test_identical_symbols():
us = make_greet_mod("Hi there")
aussie = make_greet_mod("G'day")

assert us.greet() != aussie.greet()
print us.greet(), aussie.greet()
print(us.greet(), aussie.greet())

if __name__ == '__main__':
test_identical_symbols()

0 comments on commit 57cb56e

Please sign in to comment.