We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2589671 commit c56439dCopy full SHA for c56439d
bpython/test/test_sitefix.py
@@ -2,6 +2,7 @@
2
import optparse
3
4
from bpython.test import FixLanguageTestCase as TestCase
5
+from bpython._py3compat import py3
6
7
from bpython.curtsiesfrontend import sitefix
8
@@ -39,4 +40,6 @@ def test_reload_sys(self):
39
40
sitefix.reload(sys)
41
self.assertEqual(sys.a, 2) # new attrs stick around
42
self.assertEqual(sys.stdin, 1) # stdin stays
- self.assertNotEqual(sys.version, 3) # others replaced
43
+ if not py3:
44
+ # In Python 3 sys attributes are not replaced on reload
45
+ self.assertNotEqual(sys.version, 3) # in Python 2
0 commit comments