Commits

holger krekel committed 55109c4

fix issue10 - skip PYTHONDONTWRITEBYTECODE test if it's already set.

  • Participants
  • Parent commits 81890e9

Comments (0)

Files changed (2)

+1.X
+--------------------------------
+
+- fix issue10 : skip PYTHONDONTWRITEBYTECODE test if 
+  it we are running with PYTHONDONTWRITEBYTECODE set.
+
 1.1
 --------------------------------
 

File testing/test_gateway.py

         """)
         py.test.raises(channel.RemoteError, channel.receive)
 
-    @py.test.mark.skipif('sys.version_info < (2, 6)')
+    @py.test.mark.skipif('sys.version_info < (2,6) or sys.dont_write_bytecode')
     def test_dont_write_bytecode(self, makegateway):
         check_sys_dont_write_bytecode = """
             import sys