Skip to content

Commit

Permalink
Removed faulty test since Windows and Linux have changed behavior
Browse files Browse the repository at this point in the history
macOS Python doesn't have this problem but the test will be removed all the same.
  • Loading branch information
netromdk committed Jun 25, 2023
1 parent c7dc319 commit bda5ae6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/general.py
Expand Up @@ -800,18 +800,6 @@ def test_process_syntax_error(self):
self.assertEmpty(proc_res.text)
self.assertEmpty(proc_res.bps)

# This test is ignored on Windows for now because it does not yield the value error that other
# platforms do.
@VerminTest.skipPlatform("win32")
def test_process_value_error(self):
# (Py3) ValueError: source code string cannot contain null bytes
# (Py2) TypeError: compile() expected string without null bytes
fp = ScopedTemporaryFile()
fp.write(b'\0')
fp.close()
proc_res = Processor.process_individual((fp.path(), self.config))
self.assertEqual(proc_res, None)

def test_process_invalid_versions(self):
with ScopedTemporaryFile() as fp:
fp.write(b"""long(42)
Expand Down

0 comments on commit bda5ae6

Please sign in to comment.