summaryrefslogtreecommitdiff
path: root/tests/test_phystokens.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_phystokens.py')
-rw-r--r--tests/test_phystokens.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_phystokens.py b/tests/test_phystokens.py
index 9ff053c4..e15400b6 100644
--- a/tests/test_phystokens.py
+++ b/tests/test_phystokens.py
@@ -118,4 +118,5 @@ if sys.version_info < (3, 0):
# But it has to be the only authority.
source = "\xEF\xBB\xBF# coding: cp850\n"
- self.assertRaises(SyntaxError, source_encoding, source)
+ with self.assertRaises(SyntaxError):
+ source_encoding(source)