The following are code examples for showing how to use . They are extracted from open source Python projects. You can vote up the examples you like or vote down the exmaples you don’t like. You can also save this page to your account.
Example 1
def test_who_with_0dim_array(self, level=rlevel): # ticket #1243 import os import sys oldstdout = sys.stdout sys.stdout = open(os.devnull, 'w') try: try: np.who({'foo': np.array(1)}) except: raise AssertionError("ticket #1243") finally: sys.stdout.close() sys.stdout = oldstdout
Example 2
def test_who_with_0dim_array(self, level=rlevel): # ticket #1243 import os import sys oldstdout = sys.stdout sys.stdout = open(os.devnull, 'w') try: try: np.who({'foo': np.array(1)}) except: raise AssertionError("ticket #1243") finally: sys.stdout.close() sys.stdout = oldstdout
Example 3
def test_who_with_0dim_array(self, level=rlevel): # ticket #1243 import os import sys oldstdout = sys.stdout sys.stdout = open(os.devnull, 'w') try: try: np.who({'foo': np.array(1)}) except: raise AssertionError("ticket #1243") finally: sys.stdout.close() sys.stdout = oldstdout
Example 4
def test_who_with_0dim_array(self, level=rlevel): # ticket #1243 import os import sys oldstdout = sys.stdout sys.stdout = open(os.devnull, 'w') try: try: np.who({'foo': np.array(1)}) except: raise AssertionError("ticket #1243") finally: sys.stdout.close() sys.stdout = oldstdout
Example 5
def test_who_with_0dim_array(self, level=rlevel): # ticket #1243 import os import sys oldstdout = sys.stdout sys.stdout = open(os.devnull, 'w') try: try: np.who({'foo': np.array(1)}) except: raise AssertionError("ticket #1243") finally: sys.stdout.close() sys.stdout = oldstdout
Example 6
def test_who_with_0dim_array(self, level=rlevel): # ticket #1243 import os import sys oldstdout = sys.stdout sys.stdout = open(os.devnull, 'w') try: try: np.who({'foo': np.array(1)}) except: raise AssertionError("ticket #1243") finally: sys.stdout.close() sys.stdout = oldstdout