##// END OF EJS Templates
Dict litteral
Rémy Léone -
Show More
@@ -804,11 +804,10 b' class InteractiveShell(SingletonConfigurable):'
804 804
805 805 This has to be called after self.user_module is created.
806 806 """
807 self._orig_sys_module_state = {}
808 self._orig_sys_module_state['stdin'] = sys.stdin
809 self._orig_sys_module_state['stdout'] = sys.stdout
810 self._orig_sys_module_state['stderr'] = sys.stderr
811 self._orig_sys_module_state['excepthook'] = sys.excepthook
807 self._orig_sys_module_state = {'stdin': sys.stdin,
808 'stdout': sys.stdout,
809 'stderr': sys.stderr,
810 'excepthook': sys.excepthook}
812 811 self._orig_sys_modules_main_name = self.user_module.__name__
813 812 self._orig_sys_modules_main_mod = sys.modules.get(self.user_module.__name__)
814 813
@@ -115,11 +115,9 b' def test_for(item, min_version=None, callback=extract_version):'
115 115
116 116 # Global dict where we can store information on what we have and what we don't
117 117 # have available at test run time
118 have = {}
119
120 have['matplotlib'] = test_for('matplotlib')
121 have['pygments'] = test_for('pygments')
122 have['sqlite3'] = test_for('sqlite3')
118 have = {'matplotlib': test_for('matplotlib'),
119 'pygments': test_for('pygments'),
120 'sqlite3': test_for('sqlite3')}
123 121
124 122 #-----------------------------------------------------------------------------
125 123 # Test suite definitions
General Comments 0
You need to be logged in to leave comments. Login now