Python test.badsyntax_future3() Examples

The following are 10 code examples of test.badsyntax_future3(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module test , or try the search function .
Example #1
Source File: test_future.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def test_badfuture3(self):
        try:
            from test import badsyntax_future3
        except SyntaxError, msg:
            self.assertEqual(get_error_location(msg), ("badsyntax_future3", '3')) 
Example #2
Source File: test_future.py    From BinderFilter with MIT License 5 votes vote down vote up
def test_badfuture3(self):
        try:
            from test import badsyntax_future3
        except SyntaxError, msg:
            self.assertEqual(get_error_location(msg), ("badsyntax_future3", '3')) 
Example #3
Source File: test_future.py    From oss-ftp with MIT License 5 votes vote down vote up
def test_badfuture3(self):
        try:
            from test import badsyntax_future3
        except SyntaxError, msg:
            self.assertEqual(get_error_location(msg), ("badsyntax_future3", '3')) 
Example #4
Source File: test_future.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def test_badfuture3(self):
        try:
            from test import badsyntax_future3
        except SyntaxError as msg:
            self.assertEqual(get_error_location(msg), ("badsyntax_future3", '3'))
        else:
            self.fail("expected exception didn't occur") 
Example #5
Source File: test_future.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def test_badfuture3(self):
        try:
            from test import badsyntax_future3
        except SyntaxError as msg:
            self.assertEqual(get_error_location(msg), ("badsyntax_future3", '3'))
        else:
            self.fail("expected exception didn't occur") 
Example #6
Source File: test_future.py    From gcblue with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def test_badfuture3(self):
        try:
            from test import badsyntax_future3
        except SyntaxError, msg:
            self.assertEqual(get_error_location(msg), ("badsyntax_future3", '3')) 
Example #7
Source File: test_future.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def test_badfuture3(self):
        with self.assertRaises(SyntaxError) as cm:
            from test import badsyntax_future3
        self.check_syntax_error(cm.exception, "badsyntax_future3", 3) 
Example #8
Source File: test_future.py    From medicare-demo with Apache License 2.0 5 votes vote down vote up
def test_badfuture3(self):
        try:
            from test import badsyntax_future3
        except SyntaxError, msg:
            self.assertEqual(get_error_location(msg), ("badsyntax_future3", '3')) 
Example #9
Source File: test_future.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def test_badfuture3(self):
        try:
            from test import badsyntax_future3
        except SyntaxError, msg:
            self.assertEqual(get_error_location(msg), ("badsyntax_future3", '3')) 
Example #10
Source File: test_future.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def test_badfuture3(self):
        try:
            from test import badsyntax_future3
        except SyntaxError, msg:
            self.assertEqual(get_error_location(msg), ("badsyntax_future3", '3'))