Updated tests; removed try/catch for ucollections
This commit is contained in:
parent
a8cc4a1a62
commit
bf26ffbf56
|
@ -5,9 +5,6 @@
|
||||||
try:
|
try:
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
|
||||||
from ucollections import namedtuple
|
|
||||||
except ImportError:
|
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
try:
|
try:
|
||||||
try:
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
except ImportError:
|
|
||||||
from ucollections import namedtuple
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
|
@ -2,10 +2,7 @@ import skip_if
|
||||||
skip_if.no_cpython_compat()
|
skip_if.no_cpython_compat()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
try:
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
except ImportError:
|
|
||||||
from ucollections import namedtuple
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
skip_if.skip()
|
skip_if.skip()
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
try:
|
try:
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
|
||||||
from ucollections import OrderedDict
|
|
||||||
except ImportError:
|
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
try:
|
try:
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
|
||||||
from ucollections import OrderedDict
|
|
||||||
except ImportError:
|
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import bench
|
import bench
|
||||||
from ucollections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
T = namedtuple("Tup", ["num", "bar"])
|
T = namedtuple("Tup", ["num", "bar"])
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import bench
|
import bench
|
||||||
from ucollections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
T = namedtuple("Tup", ["foo1", "foo2", "foo3", "foo4", "num"])
|
T = namedtuple("Tup", ["foo1", "foo2", "foo3", "foo4", "num"])
|
||||||
|
|
||||||
|
|
|
@ -67,11 +67,8 @@ def board_not_in(*board):
|
||||||
skip()
|
skip()
|
||||||
|
|
||||||
def no_cpython_compat():
|
def no_cpython_compat():
|
||||||
try:
|
|
||||||
try:
|
try:
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
except ImportError:
|
|
||||||
from ucollections import namedtuple
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
skip()
|
skip()
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue