Created
April 9, 2014 14:32
-
-
Save ibizaman/10277272 to your computer and use it in GitHub Desktop.
This file contains 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
diff --git a/tests/test_dumper.py b/tests/test_dumper.py | |
index f85b9bb..c03462f 100644 | |
--- a/tests/test_dumper.py | |
+++ b/tests/test_dumper.py | |
@@ -69,11 +69,11 @@ def test_from_import_special_notation(): | |
def test_print_empty(): | |
- check_dumps("print") | |
+ check_dumps("print()") | |
def test_print(): | |
- check_dumps("print pouet") | |
+ check_dumps("print(pouet)") | |
def test_print_madness(): | |
@@ -157,10 +157,6 @@ def test_raw_string(): | |
check_dumps("r'pouet'") | |
-def test_unicode_raw_string(): | |
- check_dumps("ur'pouet'") | |
- | |
- | |
def test_binary_string(): | |
check_dumps("b'pouet'") | |
@@ -197,10 +193,6 @@ def test_try_except(): | |
check_dumps("try : pass\nexcept Exception : pass") | |
-def test_try_except_comma(): | |
- check_dumps("try : pass\nexcept Exception , d : pass") | |
- | |
- | |
def test_try_except_as(): | |
check_dumps("try : pass\nexcept Exception as d : pass") | |
@@ -325,10 +317,6 @@ def test_associative_parenthesis(): | |
check_dumps("( \n ( a ) + ( 1 * 4 )\n ) ") | |
-def test_fplist(): | |
- check_dumps("def a((b, c)): pass") | |
- | |
- | |
def test_break(): | |
check_dumps("break") | |
@@ -345,8 +333,8 @@ def test_continue(): | |
def test_raise(): | |
check_dumps("raise") | |
check_dumps("raise a") | |
- check_dumps("raise a , b") | |
- check_dumps("raise a , b , c") | |
+ check_dumps("raise a(b)") | |
+ check_dumps("raise a(b).with_traceback(tb)") | |
def test_del(): | |
@@ -426,7 +414,7 @@ def test_hexa(): | |
def test_octa(): | |
- check_dumps("0123") | |
+ check_dumps("0o123") | |
def test_binary(): | |
@@ -450,15 +438,15 @@ def test_semicolon(): | |
def test_exec(): | |
- check_dumps("exec a") | |
+ check_dumps("exec(a)") | |
def test_exec_globals(): | |
- check_dumps("exec a in b") | |
+ check_dumps("exec(a,b)") | |
def test_exec_globals_locals(): | |
- check_dumps("exec a in b , c") | |
+ check_dumps("exec(a,b,c)") | |
def test_global(): | |
@@ -470,7 +458,7 @@ def test_global_more(): | |
def test_ellipsis(): | |
- check_dumps("a[ . . .]") | |
+ check_dumps("a[...]") | |
def test_yield_atom_empty(): | |
@@ -482,7 +470,7 @@ def test_yield_atom(): | |
def test_repr(): | |
- check_dumps("` a `") | |
+ check_dumps("repr(a)") | |
def test_comment_special_case(): | |
@@ -498,7 +486,7 @@ def test_getitem_special_case(): | |
def test_print_tuple(): | |
- check_dumps("print(pouet, pouet)") | |
+ check_dumps("print((pouet, pouet))") | |
def test_raise_special(): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment