##// END OF EJS Templates
Merge pull request #6848 from takluyver/skip-ipexec-commands-windows...
Thomas Kluyver -
r18683:edbe1534 merge
parent child Browse files
Show More
@@ -44,6 +44,9 b' class TestFileToRun(unittest.TestCase, tt.TempFileMixin):'
44 err = SQLITE_NOT_AVAILABLE_ERROR if sqlite_err_maybe else None
44 err = SQLITE_NOT_AVAILABLE_ERROR if sqlite_err_maybe else None
45 tt.ipexec_validate(self.fname, self.fname, err)
45 tt.ipexec_validate(self.fname, self.fname, err)
46
46
47 # The commands option to ipexec_validate doesn't work on Windows, and it
48 # doesn't seem worth fixing
49 @dec.skip_win32
47 def test_py_script_file_attribute_interactively(self):
50 def test_py_script_file_attribute_interactively(self):
48 """Test that `__file__` is not set after `ipython -i file.py`"""
51 """Test that `__file__` is not set after `ipython -i file.py`"""
49 src = "True\n"
52 src = "True\n"
@@ -53,6 +56,7 b' class TestFileToRun(unittest.TestCase, tt.TempFileMixin):'
53 tt.ipexec_validate(self.fname, 'False', err, options=['-i'],
56 tt.ipexec_validate(self.fname, 'False', err, options=['-i'],
54 commands=['"__file__" in globals()', 'exit()'])
57 commands=['"__file__" in globals()', 'exit()'])
55
58
59 @dec.skip_win32
56 @dec.skipif(PY3)
60 @dec.skipif(PY3)
57 def test_py_script_file_compiler_directive(self):
61 def test_py_script_file_compiler_directive(self):
58 """Test `__future__` compiler directives with `ipython -i file.py`"""
62 """Test `__future__` compiler directives with `ipython -i file.py`"""
General Comments 0
You need to be logged in to leave comments. Login now