small test tweak..

Allow it to run not under pytest
This commit is contained in:
rocky
2018-03-01 17:23:58 -05:00
parent 2edc757b6f
commit 8d1c454376

View File

@@ -18,3 +18,6 @@ def test_token():
t = Token('LOAD_CONST', offset=1, attr=False, pattr=False, has_arg=True)
expect = ' 1 LOAD_CONST 0 False'
assert t.format() == expect
if __name__ == '__main__':
test_token()