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